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

add toggle to hide gift sub buttons

adds a toggle under `Channel > Appearance >> General` to hide the "gift
a sub" buttons from the channel header (right under the player) and from
the channel goals.

because i have poor impulse control sometimes

<3 tyvm; i love the extension
This commit is contained in:
lemonslut 2025-05-26 01:02:10 -06:00
parent b250075813
commit d035105819
No known key found for this signature in database
2 changed files with 16 additions and 0 deletions

View file

@ -481,6 +481,18 @@ export default class CSSTweaks extends Module {
changed: val => this.toggle('square-avatars', !val)
});
this.settings.add('channel.gift-sub-buttons.hide', {
default: false,
ui: {
order: -1,
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.toggle('hide-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.toggle('hide-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'));

View file

@ -0,0 +1,3 @@
button[data-a-target="gift-button"] {
display: none !important;
}