1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-10-13 22:41:57 +00:00

4.0.0-rc18

* Added: Reason context menus for in-line timeout and ban actions.
* Fixed: Certain FFZ tool-tips using the wrong input handlers.
* Fixed: Do not update CSS whenever bits configuration changes, only when necessary. (Performance fix for the bleed purple campaign.)
* Changed: Mark certain page elements with a flag to avoid crawling them with MutationObservers. (More performance~~)
This commit is contained in:
SirStendec 2019-04-29 18:14:04 -04:00
parent 1649294bde
commit 23816fafc9
16 changed files with 464 additions and 36 deletions

View file

@ -397,7 +397,7 @@ export default class Fine extends Module {
else if ( node instanceof Node )
node = this.getReactInstance(node);
if ( ! node || ! this._live_waiting.length )
if ( ! node || node._ffz_no_scan || ! this._live_waiting.length )
continue;
const data = this.searchAll(node, this._waiting_crit, 1000);

View file

@ -189,11 +189,14 @@ export class ManagedStyle {
this._style = null;
}
set(key, value) {
set(key, value, force) {
const block = this._blocks[key];
if ( block )
if ( block ) {
if ( ! force && block.textContent === value )
return;
block.textContent = value;
else
} else
this._style.appendChild(this._blocks[key] = document.createTextNode(value));
}

View file

@ -339,7 +339,7 @@ export class Tooltip {
tip.outer = el._ffz_out_handler = el._ffz_over_handler = null;
}
if ( this.live )
if ( this.live && this.elements )
this.elements.delete(tip.target);
tip._update = tip.rerender = tip.update = noop;