mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
4.38.2
* Fixed: The Audio Compressor incorrectly being disabled due to changes in Twitch's player causing FFZ to incorrectly assume a clip is being played. * Fixed: Twitch emote cards failing to open when clicking an emote. (Hilariously, this is because we were searching for the component that opens emote cards up to 200 entries up the stack. It is now, as of the time of this update, 201 entries up the stack.) * API Fixed: When adding a new chat action definition or renderer, invalidate message hover, user context, and room actions as well and not only inline.
This commit is contained in:
parent
e7066ce4da
commit
4001d15b18
4 changed files with 16 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "frankerfacez",
|
"name": "frankerfacez",
|
||||||
"author": "Dan Salvato LLC",
|
"author": "Dan Salvato LLC",
|
||||||
"version": "4.38.1",
|
"version": "4.38.2",
|
||||||
"description": "FrankerFaceZ is a Twitch enhancement suite.",
|
"description": "FrankerFaceZ is a Twitch enhancement suite.",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
|
|
@ -258,8 +258,12 @@ export default class Actions extends Module {
|
||||||
|
|
||||||
this.actions[key] = data;
|
this.actions[key] = data;
|
||||||
|
|
||||||
for(const ctx of this.settings.__contexts)
|
for(const ctx of this.settings.__contexts) {
|
||||||
ctx.update('chat.actions.inline');
|
ctx.update('chat.actions.inline');
|
||||||
|
ctx.update('chat.actions.hover');
|
||||||
|
ctx.update('chat.actions.user-context');
|
||||||
|
ctx.update('chat.actions.room');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -269,8 +273,13 @@ export default class Actions extends Module {
|
||||||
|
|
||||||
this.renderers[key] = data;
|
this.renderers[key] = data;
|
||||||
|
|
||||||
for(const ctx of this.settings.__contexts)
|
for(const ctx of this.settings.__contexts) {
|
||||||
ctx.update('chat.actions.inline');
|
ctx.update('chat.actions.inline');
|
||||||
|
ctx.update('chat.actions.inline');
|
||||||
|
ctx.update('chat.actions.hover');
|
||||||
|
ctx.update('chat.actions.user-context');
|
||||||
|
ctx.update('chat.actions.room');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -513,7 +513,7 @@ export default class Emotes extends Module {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const line = fine.searchParent(target, n => n.props && n.props.message),
|
const line = fine.searchParent(target, n => n.props && n.props.message),
|
||||||
opener = fine.searchParent(target, n => n.onShowEmoteCard, 200);
|
opener = fine.searchParent(target, n => n.onShowEmoteCard, 250);
|
||||||
|
|
||||||
if ( ! line || ! opener )
|
if ( ! line || ! opener )
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1600,7 +1600,7 @@ export default class PlayerBase extends Module {
|
||||||
const video = player.mediaSinkManager?.video || player.core?.mediaSinkManager?.video;
|
const video = player.mediaSinkManager?.video || player.core?.mediaSinkManager?.video;
|
||||||
if ( ! video )
|
if ( ! video )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ( ! video.src && ! video.srcObject )
|
if ( ! video.src && ! video.srcObject )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -1610,6 +1610,8 @@ export default class PlayerBase extends Module {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Validation for srcObject (if we need it)
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue