1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-03 08:28:31 +00:00

Add simple flag to all settings designated for simple view

This commit is contained in:
Dan Salvato 2024-02-07 18:48:21 -07:00
parent f4febe6ee0
commit 603aec04d6
14 changed files with 94 additions and 42 deletions

View file

@ -979,7 +979,8 @@ export default class Chat extends Module {
ui: {
path: 'Chat > Filtering > General >> Appearance',
title: 'Highlight messages that mention you.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});
@ -1045,6 +1046,7 @@ export default class Chat extends Module {
path: 'Chat > Tooltips >> Links',
title: 'Display rich tooltips for links.',
component: 'setting-check-box',
simple: true,
extra: {
component: 'chat-tooltip-example'
}
@ -1092,6 +1094,7 @@ export default class Chat extends Module {
component: 'tooltip-tos',
item: key,
override_setting: 'agreed-tos',
simple: true,
getChat: () => this,
data: deep_copy(info),
onUIChange: () => this.emit(':update-link-resolver')
@ -1166,7 +1169,7 @@ export default class Chat extends Module {
title: 'Cheer Stacking',
description: 'Collect all the cheers in a message into a single cheer at the start of the message.',
component: 'setting-select-box',
simple: true,
data: [
{value: 0, title: 'Disabled'},
{value: 1, title: 'Grouped by Type'},
@ -1196,6 +1199,7 @@ export default class Chat extends Module {
description: 'This controls whether or not animated emotes are allowed to play in chat. When this is `Disabled`, emotes will appear as static images. Setting this to `Enable on Hover` may cause performance issues.',
component: 'setting-select-box',
simple: true,
data: [
{value: 0, title: 'Disabled'},
{value: 1, title: 'Enabled'},
@ -1226,7 +1230,8 @@ export default class Chat extends Module {
ui: {
path: 'Chat > Bits and Cheering >> Appearance',
title: 'Display animated cheers.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});

View file

@ -31,7 +31,8 @@ export default class LinkCard extends Module {
path: 'Chat > Link Cards >> General',
title: 'Enable Link Cards.',
description: 'When this is enabled and you click a link in chat or whispers, a popup will open with information about the link. This provides the same data as rich link tooltips, but in a form that allows more interaction.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});
@ -41,7 +42,8 @@ export default class LinkCard extends Module {
path: 'Chat > Link Cards >> General',
title: 'Bypass Known Shorteners',
description: 'When clicking "Open Link" from a Link Card with this enabled, you will bypass known shorteners and tracking services and go directly to the destination URL.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});

View file

@ -63,6 +63,7 @@ export default class MainMenu extends Module {
this.settings.addUI('backup', {
path: 'Data Management > Backup and Restore @{"profile_warning": false}',
component: 'backup-restore',
simple: true,
getExtraTerms: () => ['restore'],
getFFZ: () => this.resolve('core')
});
@ -220,7 +221,8 @@ export default class MainMenu extends Module {
ui: {
path: 'Appearance > Control Center >> Simple View',
title: 'Show simple view.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});

View file

@ -90,7 +90,8 @@ export default class PlayerBase extends Module {
ui: {
path: 'Player > General >> Embed and Popout',
title: 'Show metadata when mousing over the player.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});
@ -111,7 +112,8 @@ export default class PlayerBase extends Module {
path: 'Player > General >> General',
title: 'Do not display content warnings.',
description: 'When this is enabled, FFZ will automatically skip content warnings. This feature is intended for use by adults only.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
},
changed: () => {
@ -528,6 +530,7 @@ export default class PlayerBase extends Module {
title: 'Show Overlay Extensions',
description: '**Note**: This feature does not prevent extensions from loading. Hidden extensions are merely invisible. Hiding extensions with this feature will not improve your security. To prevent extensions from loading entirely, we recommend using the [Disable Twitch Extensions browser extension](https://twitch-tools.rootonline.de/disable_twitch_extensions.php) by CommanderRoot.',
component: 'setting-select-box',
simple: true,
data: [
{value: 2, title: 'Never'},
{value: 1, title: 'With Controls'},
@ -562,7 +565,8 @@ export default class PlayerBase extends Module {
ui: {
path: 'Player > General >> Playback',
title: 'Auto-play the next recommended video after a video finishes.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});

View file

@ -60,7 +60,8 @@ export default class Channel extends Module {
ui: {
path: 'Channel > Behavior >> General',
title: 'Automatically skip channel trailers.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
},
changed: val => {
@ -74,7 +75,8 @@ export default class Channel extends Module {
ui: {
path: 'Channel > Behavior >> General',
title: 'Automatically open chat when opening an offline channel page.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});

View file

@ -303,6 +303,7 @@ export default class EmoteMenu extends Module {
path: 'Chat > Emote Menu >> General',
title: 'Default Tab',
component: 'setting-select-box',
simple: true,
data: [
{value: 'fav', title: 'Favorites'},
{value: 'channel', title: 'Channel'},
@ -337,7 +338,8 @@ export default class EmoteMenu extends Module {
ui: {
path: 'Chat > Emote Menu >> General',
title: 'Display emoji in the emote menu.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});
@ -347,7 +349,8 @@ export default class EmoteMenu extends Module {
ui: {
path: 'Chat > Emote Menu >> General',
title: 'Display all emotes on one tab.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});

View file

@ -421,7 +421,8 @@ export default class ChatHook extends Module {
path: 'Chat > Appearance >> Community',
title: 'Hide all Community Highlights from the top of chat.',
component: 'setting-check-box',
description: 'Community Highlights are polls, community gift subs, etc. that float over the top of chat temporarily with no way to close them.'
description: 'Community Highlights are polls, community gift subs, etc. that float over the top of chat temporarily with no way to close them.',
simple: true
}
});
@ -430,7 +431,8 @@ export default class ChatHook extends Module {
ui: {
path: 'Chat > Appearance >> Community',
title: 'Display a banner at the top of chat when a mass gift sub happens.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});
@ -458,6 +460,7 @@ export default class ChatHook extends Module {
path: 'Chat > Appearance >> Community',
title: 'Allow the Hype Train to be displayed in chat.',
component: 'setting-check-box',
simple: true
}
});
@ -485,7 +488,8 @@ export default class ChatHook extends Module {
ui: {
path: 'Chat > Appearance >> Community',
title: 'Allow Polls to be displayed in chat.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});
@ -494,7 +498,8 @@ export default class ChatHook extends Module {
ui: {
path: 'Chat > Appearance >> Community',
title: 'Allow Predictions to be displayed in chat.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});
@ -503,7 +508,8 @@ export default class ChatHook extends Module {
ui: {
path: 'Chat > Appearance >> Community',
title: 'Display the Community Gift Chest banner.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});
@ -513,6 +519,7 @@ export default class ChatHook extends Module {
path: 'Chat > Channel Points >> Appearance',
title: 'Highlight the message in chat when someone redeems Highlight My Message.',
component: 'setting-select-box',
simple: true,
data: [
{value: 0, title: 'Disabled'},
{value: 1, title: 'Twitch Style'},
@ -526,7 +533,8 @@ export default class ChatHook extends Module {
ui: {
path: 'Chat > Channel Points >> General',
title: 'Display messages in chat about Channel Points rewards.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});
@ -535,7 +543,8 @@ export default class ChatHook extends Module {
ui: {
path: 'Chat > Channel Points >> General',
title: 'Display Channel Points button beneath chat.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});
@ -561,7 +570,8 @@ export default class ChatHook extends Module {
path: 'Chat > Channel Points >> Behavior',
title: 'Automatically claim bonus rewards.',
component: 'setting-check-box',
force_seen: true
force_seen: true,
simple: true
}
});
@ -571,6 +581,7 @@ export default class ChatHook extends Module {
path: 'Chat > Drops >> Behavior',
title: 'Automatically claim drops.',
component: 'setting-check-box',
simple: true
}
});
@ -632,7 +643,8 @@ export default class ChatHook extends Module {
path: 'Chat > Appearance >> Community',
title: 'Display Leaderboard',
description: 'The leaderboard shows the top cheerers and sub gifters in a channel.\n\nBy default due to a previous implementation, this inherits its value from [Chat > Bits and Cheering > Display Bits](~chat.bits_and_cheering).',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});
@ -737,7 +749,8 @@ export default class ChatHook extends Module {
{value: 5, title: 'More than 5'},
{value: 0, title: 'Always'}
],
description: 'Merge mass gift subscriptions into a single message, depending on the quantity.\n**Note:** Only affects newly gifted subs.'
description: 'Merge mass gift subscriptions into a single message, depending on the quantity.\n**Note:** Only affects newly gifted subs.',
simple: true
}
});

View file

@ -78,7 +78,8 @@ export default class Input extends Module {
ui: {
path: 'Chat > Hype Chat >> Input',
title: 'Allow the Hype Chat button to appear in the chat input element.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});
@ -97,7 +98,8 @@ export default class Input extends Module {
ui: {
path: 'Chat > Input >> Recent Messages',
title: 'Allow pressing up and down to recall previously sent chat messages.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});

View file

@ -41,6 +41,7 @@ export default class Scroller extends Module {
title: 'Pause Chat Scrolling',
description: 'Automatically stop chat from scrolling when moving the mouse over it or holding a key.\n\n**Note:** Scrolling up in chat will always prevent automatic scrolling, regardless of this setting.',
component: 'setting-select-box',
simple: true,
data: [
{value: 0, title: 'Use Twitch Setting'},
{value: 1, title: 'On Hover'},
@ -90,6 +91,7 @@ export default class Scroller extends Module {
title: 'Smooth Scrolling',
description: '**Note:** This may not behave well depending on your browser. Disable this if you encounter issues.\n\nSmoothly slide new chat messages into view. Speed will increase as necessary to keep up with chat.',
component: 'setting-select-box',
simple: true,
data: [
{value: 0, title: 'Disabled'},
{value: 1, title: 'Slow'},

View file

@ -22,7 +22,8 @@ export default class ViewerCards extends Module {
ui: {
path: 'Chat > Viewer Cards >> Appearance',
title: 'Highlight messages from users with open viewer cards.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});

View file

@ -195,6 +195,7 @@ export default class CSSTweaks extends Module {
path: 'Appearance > Layout >> Side Navigation',
title: 'Display Recommended / Popular Channels',
component: 'setting-select-box',
simple: true,
data: [
{value: 0, title: 'Never'},
{value: 1, title: 'Always'},
@ -213,6 +214,7 @@ export default class CSSTweaks extends Module {
path: 'Appearance > Layout >> Side Navigation',
title: 'Display Online Friends',
component: 'setting-select-box',
simple: true,
data: [
{value: 0, title: 'Never'},
{value: 1, title: 'Always'},
@ -240,7 +242,8 @@ export default class CSSTweaks extends Module {
ui: {
path: 'Appearance > Layout >> Side Navigation',
title: 'Hide Offline Channels',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
},
changed: val => this.toggleHide('side-offline-channels', val)
});
@ -251,6 +254,7 @@ export default class CSSTweaks extends Module {
path: 'Appearance > Layout >> Side Navigation',
title: 'Display Reruns',
component: 'setting-select-box',
simple: true,
data: [
{value: 0, title: 'Do Not Display'},
{value: 1, title: 'Normally'},
@ -349,7 +353,8 @@ export default class CSSTweaks extends Module {
ui: {
path: 'Appearance > Layout >> Top Navigation',
title: 'Allow the Twitch Turbo button to appear.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});
@ -358,7 +363,8 @@ export default class CSSTweaks extends Module {
ui: {
path: 'Appearance > Layout >> Top Navigation',
title: 'Show Prime Gaming Loot.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
},
changed: val => this.toggleHide('prime-offers', !val)
});
@ -380,7 +386,8 @@ export default class CSSTweaks extends Module {
ui: {
path: 'Chat > Whispers >> General',
title: 'Display Whispers',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
},
changed: val => {
this.toggleHide('whispers', !val);
@ -393,7 +400,8 @@ export default class CSSTweaks extends Module {
ui: {
path: 'Chat > Hype Chat >> Appearance',
title: 'Allow Hype Chat messages to appear pinned at the top of chat.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
},
changed: val => this.toggleHide('pinned-hype-chat', ! val)
});
@ -405,7 +413,8 @@ export default class CSSTweaks extends Module {
path: 'Chat > Bits and Cheering >> Appearance',
title: 'Display Bits',
description: 'Display UI associated with bits. Note: This will not hide cheering in chat messages.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
},
changed: val => this.toggle('hide-bits', !val)
});

View file

@ -205,7 +205,8 @@ export default class Directory extends Module {
ui: {
path: 'Directory > Following >> Categories',
title: 'Do not show `Recommended Live Channels` in the Following Directory.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
},
changed: () => this.DirectoryShelf.forceUpdate()

View file

@ -65,7 +65,8 @@ export default class Layout extends Module {
path: 'Appearance > Layout >> Channel',
title: 'Enable Portrait Mode',
description: 'In Portrait Mode, chat will be displayed beneath the player when the window is taller than it is wide.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});
@ -109,7 +110,8 @@ export default class Layout extends Module {
path: 'Appearance > Layout >> Channel',
title: 'Use compact chat in Portrait Mode.',
description: 'When enabled, this minimizes the chat header and places the chat input box in line with the chat buttons in order to present a more compact chat able to display more lines with limited vertical space.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
},
//changed: val => this.css_tweaks.toggle('portrait-chat', val)
})

View file

@ -90,7 +90,8 @@ export default class Player extends PlayerBase {
ui: {
path: 'Player > General >> Playback',
title: 'Auto-play featured broadcasters on the front page.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
},
});
@ -123,7 +124,8 @@ export default class Player extends PlayerBase {
ui: {
path: 'Player > General >> Theatre Mode',
title: 'Show metadata when mousing over the player.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
},
changed: val => this.css_tweaks.toggle('theatre-metadata', val)
@ -134,7 +136,8 @@ export default class Player extends PlayerBase {
ui: {
path: 'Player > General >> Theatre Mode',
title: 'Automatically open Theatre Mode when visiting a channel.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});
@ -143,7 +146,8 @@ export default class Player extends PlayerBase {
ui: {
path: 'Player > General >> Fullscreen',
title: 'Automatically expand chat when entering fullscreen mode.',
component: 'setting-check-box'
component: 'setting-check-box',
simple: true
}
});