diff --git a/src/sites/twitch-twilight/modules/css_tweaks/index.js b/src/sites/twitch-twilight/modules/css_tweaks/index.js index 50be58c4..5f5dab77 100644 --- a/src/sites/twitch-twilight/modules/css_tweaks/index.js +++ b/src/sites/twitch-twilight/modules/css_tweaks/index.js @@ -49,6 +49,7 @@ const CLASSES = { 'profile-hover': '.preview-card .tw-relative:hover .ffz-channel-avatar', 'not-live-bar': 'div[data-test-selector="non-live-video-banner-layout"]', 'channel-live-ind': '.channel-header__user .tw-channel-status-text-indicator,.channel-info-content .tw-halo__indicator', + 'channel-gift-sub-buttons': '.channel-info-content button[data-a-target="gift-button"]', 'celebration': 'body .celebration__overlay', 'last-x-events': '.last-x-events_container', @@ -481,6 +482,17 @@ export default class CSSTweaks extends Module { changed: val => this.toggle('square-avatars', !val) }); + this.settings.add('channel.gift-sub-buttons.hide', { + default: false, + ui: { + path: 'Channel > Appearance >> General', + title: 'Hide the sub gifting buttons in the channel header and channel goals.', + description: 'Note: This will not hide sub gifting buttons in chat.', + component: 'setting-check-box' + }, + changed: val => this.toggleHide('channel-gift-sub-buttons', val) + }); + /*this.settings.add('channel.hide-not-live-bar', { default: false, ui: { @@ -515,6 +527,7 @@ export default class CSSTweaks extends Module { this.toggleHide('pinned-hype-chat', ! this.settings.get('chat.hype.show-pinned')); this.toggle('square-avatars', ! this.settings.get('channel.round-avatars')); + this.toggleHide('channel-gift-sub-buttons', this.settings.get('channel.gift-sub-buttons.hide')); //this.toggleHide('not-live-bar', this.settings.get('channel.hide-not-live-bar')); this.toggleHide('channel-live-ind', this.settings.get('channel.hide-live-indicator'));