Skip to content

Commit

Permalink
feat(twitch): hide channel points balance
Browse files Browse the repository at this point in the history
Fixes #959

Co-authored-by: John <[email protected]>
Co-authored-by: Troy <[email protected]>
  • Loading branch information
3 people authored Feb 17, 2024
1 parent fda7d69 commit 7934310
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
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
- Updated background of the current emote tab selection
- Fixed an issue where suspicious users were not highlighted and clips not being displayed in chat
- Fixed an issue which caused timestamps to count beyond 24 hours
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,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 @@ -272,6 +278,12 @@ export const config = [
}
}
.seventv-hide-channel-point-balance-button {
.community-points-summary {
display: none !important;
}
}
.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 @@ -21,6 +21,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 @@ -43,4 +44,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 },
];

0 comments on commit 7934310

Please sign in to comment.