From 6b2d897183176e15d70e687201d06f86bea8dac8 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 5 Dec 2023 22:25:56 +0000 Subject: [PATCH 1/3] Added option to hide channel point balance button --- .../modules/hidden-elements/HiddenElementsModule.vue | 12 ++++++++++++ .../modules/hidden-elements/hiddenElements.ts | 2 ++ 2 files changed, 14 insertions(+) diff --git a/src/site/twitch.tv/modules/hidden-elements/HiddenElementsModule.vue b/src/site/twitch.tv/modules/hidden-elements/HiddenElementsModule.vue index d58cbe981..2a1b94dac 100644 --- a/src/site/twitch.tv/modules/hidden-elements/HiddenElementsModule.vue +++ b/src/site/twitch.tv/modules/hidden-elements/HiddenElementsModule.vue @@ -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 buton under the chat input box will be hidden", + defaultValue: false, + }), // Side bar elements declareConfig("layout.hide_recommended_channels", "TOGGLE", { path: ["Site Layout", "Sidebar"], @@ -247,6 +253,12 @@ export const config = [ } } +.seventv-hide-channel-point-balance-button { + button[aria-label="Points Balance"] { + display: none !important; + } +} + .seventv-hide-player-ext { /* stylelint-disable */ .video-player .extension-taskbar, diff --git a/src/site/twitch.tv/modules/hidden-elements/hiddenElements.ts b/src/site/twitch.tv/modules/hidden-elements/hiddenElements.ts index dff0d5d9c..80abd06e2 100644 --- a/src/site/twitch.tv/modules/hidden-elements/hiddenElements.ts +++ b/src/site/twitch.tv/modules/hidden-elements/hiddenElements.ts @@ -19,6 +19,7 @@ const hideLiveNotificationButton = useConfig("layout.hide_live_notifica const hideSubscribeButton = useConfig("layout.hide_subscribe_button"); const hideChatInputBox = useConfig("layout.hide_chat_input_box"); const hidePlayerExtensions = useConfig("player.hide_player_extensions"); +const hideChannelPointBalanceButton = useConfig("layout.hide_channel_point_balance_button"); export const hiddenElementSettings: Array<{ class: string; isHidden: Ref }> = [ { class: "seventv-hide-leaderboard", isHidden: hideLeaderboard }, @@ -39,4 +40,5 @@ export const hiddenElementSettings: Array<{ class: string; isHidden: Ref Date: Tue, 5 Dec 2023 22:28:18 +0000 Subject: [PATCH 2/3] Updated CHANGELOG-nightly --- CHANGELOG-nightly.md | 1 + .../twitch.tv/modules/hidden-elements/HiddenElementsModule.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG-nightly.md b/CHANGELOG-nightly.md index ca25655e5..33630e9ed 100644 --- a/CHANGELOG-nightly.md +++ b/CHANGELOG-nightly.md @@ -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 diff --git a/src/site/twitch.tv/modules/hidden-elements/HiddenElementsModule.vue b/src/site/twitch.tv/modules/hidden-elements/HiddenElementsModule.vue index 2a1b94dac..b873bb9fb 100644 --- a/src/site/twitch.tv/modules/hidden-elements/HiddenElementsModule.vue +++ b/src/site/twitch.tv/modules/hidden-elements/HiddenElementsModule.vue @@ -108,7 +108,7 @@ export const config = [ 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 buton under the chat input box will be hidden", + hint: "If checked, the channel point balance button under the chat input box will be hidden", defaultValue: false, }), // Side bar elements From 289cb2ad2cebbbf0b0bcb4859a1ad8d95e1bdeef Mon Sep 17 00:00:00 2001 From: John Date: Mon, 11 Dec 2023 11:35:09 +0000 Subject: [PATCH 3/3] Updated selector --- .../twitch.tv/modules/hidden-elements/HiddenElementsModule.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site/twitch.tv/modules/hidden-elements/HiddenElementsModule.vue b/src/site/twitch.tv/modules/hidden-elements/HiddenElementsModule.vue index b873bb9fb..8e7025e80 100644 --- a/src/site/twitch.tv/modules/hidden-elements/HiddenElementsModule.vue +++ b/src/site/twitch.tv/modules/hidden-elements/HiddenElementsModule.vue @@ -254,7 +254,7 @@ export const config = [ } .seventv-hide-channel-point-balance-button { - button[aria-label="Points Balance"] { + .community-points-summary { display: none !important; } }