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 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 @@ -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 },
];
Loading