1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-02 16:08:31 +00:00
* Fixed: Pages on domains other than `www.twitch.tv` failing to load due to a bug with the settings bridge introduced in the last update.
* Fixed: The standalone player's latency metadata not displaying the buffer length.
* Fixed: Replies appearing with colored usernames with the setting to have colored mentioned disabled.
This commit is contained in:
SirStendec 2023-09-06 17:20:05 -04:00
parent 588d3e3da9
commit f88f859dcf
7 changed files with 29 additions and 9 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "frankerfacez", "name": "frankerfacez",
"author": "Dan Salvato LLC", "author": "Dan Salvato LLC",
"version": "4.51.0", "version": "4.51.1",
"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",

View file

@ -208,7 +208,7 @@ class FFZBridge extends Module {
FFZBridge.Logger = Logger; FFZBridge.Logger = Logger;
const VER = FrankerFaceZ.version_info = Object.freeze({ const VER = FFZBridge.version_info = Object.freeze({
major: __version_major__, major: __version_major__,
minor: __version_minor__, minor: __version_minor__,
revision: __version_patch__, revision: __version_patch__,

View file

@ -1625,7 +1625,9 @@ export default class Chat extends Module {
{ {
type: 'reply', type: 'reply',
text: reply.parentDisplayName, text: reply.parentDisplayName,
color: this.color_cache ? this.color_cache.get(reply.parentUserLogin) : null, color: (this.context.get('chat.filtering.color-mentions') && this.color_cache)
? this.color_cache.get(reply.parentUserLogin)
: null,
recipient: reply.parentUserLogin recipient: reply.parentUserLogin
}, },
{ {

View file

@ -351,7 +351,6 @@ export default class Metadata extends Module {
videoWidth, videoWidth,
displayHeight, displayHeight,
displayWidth, displayWidth,
buffered: maybe_call(player.getBufferDuration, player) || -1,
rate: maybe_call(player.getPlaybackRate, player), rate: maybe_call(player.getPlaybackRate, player),
fps: Math.floor(maybe_call(player.getVideoFrameRate, player) || 0), fps: Math.floor(maybe_call(player.getVideoFrameRate, player) || 0),
hlsLatencyBroadcaster: maybe_call(player.getLiveLatency, player) || 0, hlsLatencyBroadcaster: maybe_call(player.getLiveLatency, player) || 0,
@ -508,12 +507,12 @@ export default class Metadata extends Module {
)}</div>) )}</div>)
:*/ null; :*/ null;
const buffer = stats.buffered > 0 const buffer = stats.bufferSize > 0
? (<div>{this.i18n.t( ? (<div>{this.i18n.t(
'metadata.player-stats.buffered', 'metadata.player-stats.buffered',
'Buffered: {buffered} seconds', 'Buffered: {buffered} seconds',
{ {
buffered: stats.buffered.toFixed(2) buffered: stats.bufferSize.toFixed(2)
} }
)}</div>) )}</div>)
: null; : null;

View file

@ -317,6 +317,16 @@ export default class Metadata extends Module {
stats stats
); );
const buffer = stats.bufferSize > 0
? (<div>{this.i18n.t(
'metadata.player-stats.buffered',
'Buffered: {buffered} seconds',
{
buffered: stats.bufferSize.toFixed(2)
}
)}</div>)
: null;
if ( data.old ) if ( data.old )
return [ return [
delayed, delayed,
@ -334,6 +344,7 @@ export default class Metadata extends Module {
<div class="tw-pd-t-05"> <div class="tw-pd-t-05">
{video_info} {video_info}
</div>, </div>,
buffer,
tampered tampered
]; ];
@ -346,6 +357,7 @@ export default class Metadata extends Module {
<div class="tw-pd-t-05"> <div class="tw-pd-t-05">
{video_info} {video_info}
</div>, </div>,
buffer,
tampered tampered
]; ];
} }

View file

@ -1879,6 +1879,7 @@ other {# messages were deleted by a moderator.}
if ( clear_tokens ) { if ( clear_tokens ) {
msg.ffz_tokens = null; msg.ffz_tokens = null;
msg.ffz_reply = null;
msg.highlights = msg.mentioned = msg.mention_color = msg.color_priority = null; msg.highlights = msg.mentioned = msg.mention_color = msg.color_priority = null;
} }
@ -1927,6 +1928,7 @@ other {# messages were deleted by a moderator.}
if ( clear_tokens ) { if ( clear_tokens ) {
msg.ffz_tokens = null; msg.ffz_tokens = null;
msg.ffz_reply = null;
msg.highlights = msg.mentioned = msg.mention_color = msg.mention_priority = msg.clear_priority = null; msg.highlights = msg.mentioned = msg.mention_color = msg.mention_priority = msg.clear_priority = null;
} }
} }
@ -1940,6 +1942,7 @@ other {# messages were deleted by a moderator.}
if ( clear_tokens ) { if ( clear_tokens ) {
msg.ffz_tokens = null; msg.ffz_tokens = null;
msg.ffz_reply = null;
msg.highlights = msg.mentioned = msg.mention_color = msg.mention_priority = msg.clear_priority = null; msg.highlights = msg.mentioned = msg.mention_color = msg.mention_priority = msg.clear_priority = null;
} }
} }

View file

@ -122,8 +122,12 @@ const config = {
new CopyPlugin({ new CopyPlugin({
patterns: [ patterns: [
{ {
from: './src/entry.js', from: FOR_EXTENSION
to: 'script.js' ? './src/entry_ext.js'
: './src/entry.js',
to: (DEV_SERVER || DEV_BUILD)
? 'script.js'
: 'script.min.js'
} }
] ]
}), }),
@ -142,7 +146,7 @@ const config = {
} }
}), }),
new WebpackManifestPlugin({ new WebpackManifestPlugin({
publicPath: ''
}) })
], ],