mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +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:
parent
b250075813
commit
d035105819
2 changed files with 16 additions and 0 deletions
|
@ -481,6 +481,18 @@ 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: {
|
||||||
|
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', {
|
/*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.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('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'));
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
button[data-a-target="gift-button"] {
|
||||||
|
display: none !important;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue