1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 12:55:55 +00:00

Merge pull request #1675 from lemonslut/🍋/hide-gift-sub-buttons-bc-i-have-poor-impulse-control

add toggle to hide gift sub buttons
This commit is contained in:
Mike 2025-06-17 15:14:10 -04:00 committed by GitHub
commit 195fe74875
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,6 +49,7 @@ const CLASSES = {
'profile-hover': '.preview-card .tw-relative:hover .ffz-channel-avatar', 'profile-hover': '.preview-card .tw-relative:hover .ffz-channel-avatar',
'not-live-bar': 'div[data-test-selector="non-live-video-banner-layout"]', '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-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', 'celebration': 'body .celebration__overlay',
'last-x-events': '.last-x-events_container', 'last-x-events': '.last-x-events_container',
@ -481,6 +482,17 @@ export default class CSSTweaks extends Module {
changed: val => this.toggle('square-avatars', !val) 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', { /*this.settings.add('channel.hide-not-live-bar', {
default: false, default: false,
ui: { ui: {
@ -515,6 +527,7 @@ export default class CSSTweaks extends Module {
this.toggleHide('pinned-hype-chat', ! this.settings.get('chat.hype.show-pinned')); this.toggleHide('pinned-hype-chat', ! this.settings.get('chat.hype.show-pinned'));
this.toggle('square-avatars', ! this.settings.get('channel.round-avatars')); 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('not-live-bar', this.settings.get('channel.hide-not-live-bar'));
this.toggleHide('channel-live-ind', this.settings.get('channel.hide-live-indicator')); this.toggleHide('channel-live-ind', this.settings.get('channel.hide-live-indicator'));