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:
commit
195fe74875
1 changed files with 13 additions and 0 deletions
|
@ -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'));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue