mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-07 06:40:54 +00:00
4.20.91
* Added: Notice when FFZ fails to save settings because `localStorage` is full. * Added: Setting to move "Chat Identity" from the chat input box to the chat settings menu. (Closes #1025) * Fixed: Actually hide links when "Hide matching links for rich content." is enabled. (Closes #1019) * Fixed: Open the control center when clicking a markdown settings link without the control center open. * API Added: Toasts displayed by the `site.menu_button` module now support markdown.
This commit is contained in:
parent
a80728a10d
commit
66702103ff
24 changed files with 303 additions and 190 deletions
|
@ -206,7 +206,7 @@ export default class Chat extends Module {
|
|||
});
|
||||
|
||||
this.settings.add('chat.rich.hide-tokens', {
|
||||
default: true,
|
||||
default: false,
|
||||
ui: {
|
||||
path: 'Chat > Appearance >> Rich Content',
|
||||
title: 'Hide matching links for rich content.',
|
||||
|
@ -262,6 +262,13 @@ export default class Chat extends Module {
|
|||
}
|
||||
});
|
||||
|
||||
this.settings.addUI('chat.filtering.pad-bottom', {
|
||||
path: 'Chat > Filtering > Highlight',
|
||||
sort: 1000,
|
||||
component: 'setting-spacer',
|
||||
top: '30rem'
|
||||
});
|
||||
|
||||
this.settings.add('chat.filtering.click-to-reveal', {
|
||||
default: false,
|
||||
ui: {
|
||||
|
@ -1694,7 +1701,7 @@ export default class Chat extends Module {
|
|||
for(const token of tokens) {
|
||||
for(const provider of providers)
|
||||
if ( provider.test.call(this, token, msg) ) {
|
||||
token.hidden = this.context.get('chat.rich.hide-tokens') && provider.hide_token;
|
||||
token.hidden = provider.can_hide_token && (this.context.get('chat.rich.hide-tokens') || provider.hide_token);
|
||||
return provider.process.call(this, token);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue