1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-15 17:46:55 +00:00
* Added: Setting to use native styling for subscription notices in chat. (Closes #1551)
* Added: Setting to hide the stories UI in the side navigation. (Closes #1531)
* Added: Setting to hide specific users from the directory and sidebar.
* Changed: Hide the top navigation's search field when using minimal navigation for a cleaner look. (Closes #1556)
* Changed: More internal changes for the support to Manifest v3.
* Fixed: Uploading logs from the FFZ Control Center not working.
* API Changed: Removed support for `no_sanitize` from `setChildren`. I don't think anything was currently using this, but going forward it is unsupported. We want to avoid using `innerHTML` as much as possible to simplify the approval process.
This commit is contained in:
SirStendec 2024-10-09 17:09:09 -04:00
parent 533bf52c9e
commit 1ee737f2ca
17 changed files with 669 additions and 280 deletions

View file

@ -54,6 +54,8 @@ const CLASSES = {
'pinned-hype-chat': '.paid-pinned-chat-message-list',
'side-stories': '.side-nav__title + div[class*=storiesLeftNavSection]',
'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])'
@ -140,6 +142,15 @@ export default class CSSTweaks extends Module {
}
});
this.settings.add('layout.side-nav.hide-stories', {
default: false,
ui: {
path: 'Appearance > Layout >> Side Navigation',
title: 'Hide Stories',
component: 'setting-check-box'
}
});
this.settings.add('layout.side-nav.show', {
default: 1,
requires: ['layout.use-portrait'],
@ -522,6 +533,7 @@ export default class CSSTweaks extends Module {
this.toggleHide('celebration', ! this.settings.get('channel.show-celebrations'));
this.settings.getChanges('layout.subtember', val => this.toggleHide('subtember', !val));
this.settings.getChanges('layout.side-nav.hide-stories', val => this.toggleHide('side-stories', val));
this.updateFont();
this.updateTopNav();