1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00
* Added: Setting to make emotes twice as big in chat.
* Added: Setting for hiding Prediction banners in chat.
* Fixed: Current channel, category, and title not being detected correctly on the Stream Dashboard page.
* Fixed: Tweak the clip URL regex again to support more possible characters.
* Fixed: Cyclic dependency error with the CSS Tweaks module.
* Fixed: Cyclic dependencies in modules not being detected due to how the enable/load/disable/unload promises work.
* Changed: In Switchboard, try finding a route with no parameters first to minimize errors in the log.
* Changed: Attempt to detect Firefox with `InstallTrigger` for users that change their User-Agent.
This commit is contained in:
SirStendec 2021-02-15 17:48:30 -05:00
parent 9cecab8dd4
commit 01e7a95cd8
13 changed files with 194 additions and 107 deletions

View file

@ -84,6 +84,16 @@ export default class Emotes extends Module {
this._set_refs = {};
this._set_timers = {};
this.settings.add('chat.emotes.2x', {
default: false,
ui: {
path: 'Chat > Appearance >> Emotes',
title: 'Larger Emotes',
description: 'This setting will make emotes appear twice as large in chat. It\'s good for use with larger fonts or just if you really like emotes.',
component: 'setting-check-box'
}
});
this.settings.add('chat.fix-bad-emotes', {
default: true,
ui: {
@ -721,6 +731,14 @@ export default class Emotes extends Module {
if ( emote.urls[4] )
emote.srcSet += `, ${emote.urls[4]} 4x`;
if ( emote.urls[2] ) {
emote.can_big = true;
emote.src2 = emote.urls[2];
emote.srcSet2 = `${emote.urls[2]} 1x`;
if ( emote.urls[4] )
emote.srcSet2 += `, ${emote.urls[4]} 2x`;
}
emote.token = {
type: 'emote',
id: emote.id,
@ -728,8 +746,12 @@ export default class Emotes extends Module {
provider: 'ffz',
src: emote.urls[1],
srcSet: emote.srcSet,
can_big: !! emote.urls[2],
src2: emote.src2,
srcSet2: emote.srcSet2,
text: emote.hidden ? '???' : emote.name,
length: emote.name.length
length: emote.name.length,
height: emote.height
};
if ( has(MODIFIERS, emote.id) )