mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-28 05:15:54 +00:00
4.20.47
* Changed: More fixes to hopefully fix player sizing issues on certain browsers in combination with certain settings. * Changed: Send automatic error reports to our new server. * Removed: Option to disable Twitch player speedup. Currently broken with no signs of Twitch fixing the player internals to make it work again.
This commit is contained in:
parent
93908471bb
commit
b7a2ce3fcf
5 changed files with 30 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "frankerfacez",
|
"name": "frankerfacez",
|
||||||
"author": "Dan Salvato LLC",
|
"author": "Dan Salvato LLC",
|
||||||
"version": "4.20.46",
|
"version": "4.20.47",
|
||||||
"description": "FrankerFaceZ is a Twitch enhancement suite.",
|
"description": "FrankerFaceZ is a Twitch enhancement suite.",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -138,7 +138,10 @@ export default class CSSTweaks extends Module {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
changed: val => this.toggle('hide-side-nav', !val)
|
changed: val => {
|
||||||
|
this.toggle('hide-side-nav', !val);
|
||||||
|
this.emit('site.layout:resize');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.settings.add('layout.side-nav.show-avatars', {
|
this.settings.add('layout.side-nav.show-avatars', {
|
||||||
|
|
|
@ -203,6 +203,13 @@ export default class Layout extends Module {
|
||||||
this.updateCardClass(inst);
|
this.updateCardClass(inst);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.ResizeDetector.ready(() => {
|
||||||
|
if ( this._needs_resize ) {
|
||||||
|
this._needs_resize = false;
|
||||||
|
this.handleResize();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
this.SideBarChannels.ready((cls, instances) => {
|
this.SideBarChannels.ready((cls, instances) => {
|
||||||
for(const inst of instances)
|
for(const inst of instances)
|
||||||
this.updateCardClass(inst);
|
this.updateCardClass(inst);
|
||||||
|
@ -261,16 +268,19 @@ export default class Layout extends Module {
|
||||||
if ( this._resize_timer )
|
if ( this._resize_timer )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this._resize_timer = setTimeout(() => this._handleResize(), 50);
|
this._resize_timer = setTimeout(() => this._handleResize(), 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
_handleResize() {
|
_handleResize() {
|
||||||
cancelAnimationFrame(this._resize_timer);
|
clearTimeout(this._resize_timer);
|
||||||
this._resize_timer = null;
|
this._resize_timer = null;
|
||||||
|
|
||||||
for(const inst of this.ResizeDetector.instances) {
|
if ( ! this.ResizeDetector.instances.size )
|
||||||
inst?.props?.onResize?.();
|
this._needs_resize = true;
|
||||||
}
|
else
|
||||||
|
for(const inst of this.ResizeDetector.instances) {
|
||||||
|
inst?.props?.onResize?.();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
get is_minimal() {
|
get is_minimal() {
|
||||||
|
|
|
@ -217,6 +217,9 @@ export default class Player extends Module {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
// This is currently broken due to changes Twitch has made in the player
|
||||||
|
// backend. Removing it for now to avoid user confusion.
|
||||||
this.settings.add('player.allow-catchup', {
|
this.settings.add('player.allow-catchup', {
|
||||||
default: true,
|
default: true,
|
||||||
ui: {
|
ui: {
|
||||||
|
@ -230,7 +233,7 @@ export default class Player extends Module {
|
||||||
for(const inst of this.Player.instances)
|
for(const inst of this.Player.instances)
|
||||||
this.updateAutoPlaybackRate(inst, val);
|
this.updateAutoPlaybackRate(inst, val);
|
||||||
}
|
}
|
||||||
});
|
});*/
|
||||||
|
|
||||||
this.settings.add('player.mute-click', {
|
this.settings.add('player.mute-click', {
|
||||||
default: false,
|
default: false,
|
||||||
|
@ -870,7 +873,7 @@ export default class Player extends Module {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
updateAutoPlaybackRate(inst, val) {
|
/*updateAutoPlaybackRate(inst, val) {
|
||||||
const player = inst.props?.mediaPlayerInstance;
|
const player = inst.props?.mediaPlayerInstance;
|
||||||
if ( ! player )
|
if ( ! player )
|
||||||
return;
|
return;
|
||||||
|
@ -880,7 +883,7 @@ export default class Player extends Module {
|
||||||
|
|
||||||
if ( player.setLiveSpeedUpRate )
|
if ( player.setLiveSpeedUpRate )
|
||||||
player.setLiveSpeedUpRate(val ? 1.05 : 1);
|
player.setLiveSpeedUpRate(val ? 1.05 : 1);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
|
||||||
updateHideExtensions(val) {
|
updateHideExtensions(val) {
|
||||||
|
@ -1012,9 +1015,9 @@ export default class Player extends Module {
|
||||||
this.addResetButton(inst);
|
this.addResetButton(inst);
|
||||||
this.addCompressorButton(inst, false);
|
this.addCompressorButton(inst, false);
|
||||||
|
|
||||||
const player = inst?.props?.mediaPlayerInstance;
|
/*const player = inst?.props?.mediaPlayerInstance;
|
||||||
if ( player && ! this.settings.get('player.allow-catchup') && player.setLiveSpeedUpRate )
|
if ( player && ! this.settings.get('player.allow-catchup') && player.setLiveSpeedUpRate )
|
||||||
player.setLiveSpeedUpRate(1);
|
player.setLiveSpeedUpRate(1);*/
|
||||||
|
|
||||||
if ( inst._ffzUpdateVolume )
|
if ( inst._ffzUpdateVolume )
|
||||||
inst._ffzUpdateVolume();
|
inst._ffzUpdateVolume();
|
||||||
|
|
|
@ -11,7 +11,8 @@ export const API_SERVER = '//api.frankerfacez.com';
|
||||||
export const NEW_API = '//api2.frankerfacez.com';
|
export const NEW_API = '//api2.frankerfacez.com';
|
||||||
|
|
||||||
//export const SENTRY_ID = 'https://1c3b56f127254d3ba1bd1d6ad8805eee@sentry.io/1186960';
|
//export const SENTRY_ID = 'https://1c3b56f127254d3ba1bd1d6ad8805eee@sentry.io/1186960';
|
||||||
export const SENTRY_ID = 'https://07ded545d3224ca59825daee02dc7745@catbag.frankerfacez.com:444/2';
|
//export const SENTRY_ID = 'https://07ded545d3224ca59825daee02dc7745@catbag.frankerfacez.com:444/2';
|
||||||
|
export const SENTRY_ID = 'https://74b46b3894114f399d51949c6d237489@sentry.frankerfacez.com/2';
|
||||||
|
|
||||||
|
|
||||||
export const LV_SERVER = 'https://cbenni.com/api';
|
export const LV_SERVER = 'https://cbenni.com/api';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue