1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-16 01:56:55 +00:00
* Added: Setting to automatically accept content warnings when opening a stream.
* Added: Three settings to control the appearance of Hype Chat messages.
* Changed: Added a few keywords to settings entries in the `Data Management` category for better search support.
* Developer: The chat and pubsub logging utility can now inject pubsub messages for testing.
This commit is contained in:
SirStendec 2023-06-26 13:11:27 -04:00
parent eea9d51bdc
commit 7f109b4b48
11 changed files with 273 additions and 16 deletions

View file

@ -50,6 +50,8 @@ const CLASSES = {
'last-x-events': '.last-x-events_container',
'pinned-hype-chat': '.paid-pinned-chat-message-list',
'ci-mod-view': '.chat-input__buttons-container a[href*="/moderator"]',
'ci-highlight-settings': '.chat-input__buttons-container button[data-highlight-selector="chat-highlights-shortcut"]',
'ci-shield-mode': '.chat-input__buttons-container > div:last-child button[class|="ScCoreButton"]:not([data-highlight-selector]):not([data-a-target])'
@ -364,6 +366,16 @@ export default class CSSTweaks extends Module {
}
});
this.settings.add('chat.hype.show-pinned', {
default: true,
ui: {
path: 'Chat > Hype Chat >> Appearance',
title: 'Allow Hype Chat messages to appear pinned at the top of chat.',
component: 'setting-check-box'
},
changed: val => this.toggleHide('pinned-hype-chat', ! val)
});
this.settings.add('chat.bits.show', {
default: true,
ui: {
@ -466,6 +478,8 @@ export default class CSSTweaks extends Module {
this.toggleHide('top-discover', !this.settings.get('layout.discover'));
this.toggle('hide-unfollow-button', this.settings.get('channel.hide-unfollow'));
this.toggleHide('pinned-hype-chat', ! this.settings.get('chat.hype.show-pinned'));
this.toggle('square-avatars', ! this.settings.get('channel.round-avatars'));
//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'));