mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 12:55:55 +00:00
reimplement with CLASSES const over snippet
& more specific selector that still covers both buttons i want to nix also remove unneeded `order: -1` that was cargo culted in there
This commit is contained in:
parent
d035105819
commit
67ac661e2c
2 changed files with 3 additions and 6 deletions
|
@ -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',
|
||||
|
@ -484,13 +485,12 @@ export default class CSSTweaks extends Module {
|
|||
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)
|
||||
changed: val => this.toggleHide('channel-gift-sub-buttons', val)
|
||||
});
|
||||
|
||||
/*this.settings.add('channel.hide-not-live-bar', {
|
||||
|
@ -527,7 +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('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'));
|
||||
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
button[data-a-target="gift-button"] {
|
||||
display: none !important;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue