Skip to content
Open
Show file tree
Hide file tree
Changes from all 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 @@ -30,6 +30,7 @@
### 3.1.11.3000

- Fixed an issue which led to some messages (like announcements) not displaying correctly
- Added a new feature to Twitch, "Hide Turbo Button"

### 3.1.11.2000

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ export const config = [
hint: "If checked, the channel point balance button under the chat input box will be hidden",
defaultValue: false,
}),
// Hide Turbo Button (fixed)
declareConfig("layout.hide_turbo_button", "TOGGLE", {
path: ["Site Layout", "Twitch Features"],
label: "Hide Turbo Button",
hint: "If checked, the Twitch Turbo button will be hidden",
defaultValue: false,
}),
// Side bar elements
declareConfig("layout.hide_recommended_channels", "TOGGLE", {
path: ["Site Layout", "Sidebar"],
Expand Down Expand Up @@ -176,6 +183,8 @@ export const config = [
</script>

<style lang="scss">
/* Keep all your previous styles exactly as they are */

.seventv-hide-buttons-below-chatbox {
div[data-test-selector="chat-input-buttons-container"] {
display: none !important;
Expand Down Expand Up @@ -340,6 +349,14 @@ export const config = [
}
}

.seventv-hide-turbo-button {
a[href*="turbo"],
button[data-a-target*="turbo"],
div[class*="turbo"] {
display: none !important;
}
}

.seventv-hide-channel-point-balance-button {
.community-points-summary {
display: none !important;
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 @@ -5,6 +5,7 @@ const hideLeaderboard = useConfig<boolean>("layout.hide_channel_leaderboard");
const hideButtonsBelowChatbox = useConfig<boolean>("layout.hide_buttons_below_chatbox");
const hideStreamChatBar = useConfig<boolean>("layout.hide_stream_chat_bar");
const hideBitsButtons = useConfig<boolean>("layout.hide_bits_buttons");
const hideTurboButtons = useConfig<boolean>("layout.hide_turbo_buttons");
const hideHypeChatButton = useConfig<boolean>("layout.hide_hype_chat_button");
const hideTopBarOfStream = useConfig<boolean>("layout.hide_top_bar_of_stream");
const hidePlayerControls = useConfig<boolean>("layout.hide_player_controls");
Expand All @@ -29,6 +30,7 @@ export const hiddenElementSettings: Array<{ class: string; isHidden: Ref<boolean
{ class: "seventv-hide-buttons-below-chatbox", isHidden: hideButtonsBelowChatbox },
{ class: "seventv-hide-stream-chat-bar", isHidden: hideStreamChatBar },
{ class: "seventv-hide-bits-buttons", isHidden: hideBitsButtons },
{ class: "seventv-hide-turbo-buttons", isHidden: hideTurboButtons }, // <-- added
{ class: "seventv-hide-hype-chat-button", isHidden: hideHypeChatButton },
{ class: "seventv-hide-top-bar-of-stream", isHidden: hideTopBarOfStream },
{ class: "seventv-hide-player-controls", isHidden: hidePlayerControls },
Expand Down