Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#959 | Added option to hide channel point balance button #960

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG-nightly.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
**The changes listed here are not assigned to an official release**.

- Reinstated animated avatars
- Added an option to hide the channel point balance button under the chat input box

### 3.0.16.1000

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ export const config = [
hint: "If checked, the 'Turn notifications off/on' button under the stream will be hidden",
defaultValue: false,
}),
declareConfig("layout.hide_channel_point_balance_button", "TOGGLE", {
path: ["Site Layout", "Twitch Features"],
label: "Hide Channel Point Balance Button",
hint: "If checked, the channel point balance button under the chat input box will be hidden",
defaultValue: false,
}),
// Side bar elements
declareConfig("layout.hide_recommended_channels", "TOGGLE", {
path: ["Site Layout", "Sidebar"],
Expand Down Expand Up @@ -247,6 +253,12 @@ export const config = [
}
}

.seventv-hide-channel-point-balance-button {
button[aria-label="Points Balance"] {
display: none !important;
}
}

goralight marked this conversation as resolved.
Show resolved Hide resolved
.seventv-hide-player-ext {
/* stylelint-disable */
.video-player .extension-taskbar,
Expand Down
2 changes: 2 additions & 0 deletions src/site/twitch.tv/modules/hidden-elements/hiddenElements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const hideLiveNotificationButton = useConfig<boolean>("layout.hide_live_notifica
const hideSubscribeButton = useConfig<boolean>("layout.hide_subscribe_button");
const hideChatInputBox = useConfig<boolean>("layout.hide_chat_input_box");
const hidePlayerExtensions = useConfig<boolean>("player.hide_player_extensions");
const hideChannelPointBalanceButton = useConfig<boolean>("layout.hide_channel_point_balance_button");

export const hiddenElementSettings: Array<{ class: string; isHidden: Ref<boolean> }> = [
{ class: "seventv-hide-leaderboard", isHidden: hideLeaderboard },
Expand All @@ -39,4 +40,5 @@ export const hiddenElementSettings: Array<{ class: string; isHidden: Ref<boolean
{ class: "seventv-hide-subscribe-button", isHidden: hideSubscribeButton },
{ class: "seventv-hide-chat-input-box", isHidden: hideChatInputBox },
{ class: "seventv-hide-player-ext", isHidden: hidePlayerExtensions },
{ class: "seventv-hide-channel-point-balance-button", isHidden: hideChannelPointBalanceButton },
];