mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-03 08:28:31 +00:00
Hiding all Subgift button i could find
This commit is contained in:
parent
28928e5278
commit
84631fb802
3 changed files with 24 additions and 1 deletions
|
@ -18,10 +18,18 @@ export default class ViewerCards extends Module {
|
|||
this.last_login = null;
|
||||
|
||||
this.settings.add('chat.viewer-cards.viewer-card-gift-subscribe-button', {
|
||||
default: false,
|
||||
requires: ['channel.hide-all-sub-gifting'],
|
||||
default: null,
|
||||
process(ctx, val) {
|
||||
if ( val != null )
|
||||
return val;
|
||||
|
||||
return ctx.get('channel.hide-all-sub-gifting')
|
||||
},
|
||||
ui: {
|
||||
path: 'Chat > Viewer Cards >> Appearance',
|
||||
title: 'Hide "Gift a Sub" button on viewer cards',
|
||||
description: 'By default, this inherits its value from [Channel > Appearance > Hide all "Gift a Sub" button](~channel.hide-all-sub-gifting)\'',
|
||||
component: 'setting-check-box'
|
||||
},
|
||||
});
|
||||
|
|
|
@ -407,6 +407,16 @@ export default class CSSTweaks extends Module {
|
|||
changed: val => this.toggle('hide-unfollow-button', val)
|
||||
});
|
||||
|
||||
this.settings.add('channel.hide-all-sub-gifting', {
|
||||
default: false,
|
||||
ui: {
|
||||
path: 'Channel > Appearance >> General',
|
||||
title: 'Hide all "Gift a Sub" button.',
|
||||
component: 'setting-check-box'
|
||||
},
|
||||
changed: val => this.toggle('hide-all-sub-gifting', val)
|
||||
});
|
||||
|
||||
this.settings.add('channel.hide-live-indicator', {
|
||||
requires: ['context.route.name'],
|
||||
process(ctx, val) {
|
||||
|
@ -461,6 +471,7 @@ export default class CSSTweaks extends Module {
|
|||
this.toggleHide('prime-offers', !this.settings.get('layout.prime-offers'));
|
||||
this.toggleHide('top-discover', !this.settings.get('layout.discover'));
|
||||
this.toggle('hide-unfollow-button', this.settings.get('channel.hide-unfollow'));
|
||||
this.toggle('hide-all-sub-gifting', this.settings.get('channel.hide-all-sub-gifting'));
|
||||
|
||||
this.toggle('square-avatars', ! this.settings.get('channel.round-avatars'));
|
||||
//this.toggleHide('not-live-bar', this.settings.get('channel.hide-not-live-bar'));
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
.support-panel > div:not(.scrollable-area) button:not(.tw-interactable):not(.tw-purchase-button),
|
||||
button[data-test-selector="gift-subscribe-button"] {
|
||||
display: none !important;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue