1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +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",
"author": "Dan Salvato LLC",
"version": "4.51.0",
"version": "4.51.1",
"description": "FrankerFaceZ is a Twitch enhancement suite.",
"private": true,
"license": "Apache-2.0",

View file

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

View file

@ -1625,7 +1625,9 @@ export default class Chat extends Module {
{
type: 'reply',
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
},
{

View file

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

View file

@ -317,6 +317,16 @@ export default class Metadata extends Module {
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 )
return [
delayed,
@ -334,6 +344,7 @@ export default class Metadata extends Module {
<div class="tw-pd-t-05">
{video_info}
</div>,
buffer,
tampered
];
@ -346,6 +357,7 @@ export default class Metadata extends Module {
<div class="tw-pd-t-05">
{video_info}
</div>,
buffer,
tampered
];
}

View file

@ -1879,6 +1879,7 @@ other {# messages were deleted by a moderator.}
if ( clear_tokens ) {
msg.ffz_tokens = null;
msg.ffz_reply = 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 ) {
msg.ffz_tokens = null;
msg.ffz_reply = 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 ) {
msg.ffz_tokens = null;
msg.ffz_reply = 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({
patterns: [
{
from: './src/entry.js',
to: 'script.js'
from: FOR_EXTENSION
? './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({
publicPath: ''
})
],