cyfung1031 / userscript-supports

This is for the userscripts created on GreasyFork.org.
https://cyfung1031.github.io/userscript-supports/
MIT License
48 stars 3 forks source link

[YouTube Super Fast Chat] Memory Leakage Investigation #45

Closed cyfung1031 closed 1 month ago

cyfung1031 commented 2 months ago

Leakage Source

YT Live Chat Leakages

YT Code Leakage

    f.updateStatsBarAndMaybeShowAnimation = function(a, b, c) {
        var d = this;
        a || c();
        a && this.statsBar && this.username && this.textContent && (this.isMouseOver ? (b(),
        c()) : (a = this.animateShowStats(),
        this.data.animationOrigin && this.data.trackingParams && aB().stateChanged(this.data.trackingParams, {
            animationEventData: {
                origin: this.data.animationOrigin
            }
        }),
        a.finished.then(function() {
            var e;
            setTimeout(function() {
                b();
                c();
                if (!d.isMouseOver) {
                    var g, k;
                    d.animateHideStats(((g = d.data) == null ? void 0 : g.dynamicStateData.stateSlideDurationMs) || 0, ((k = d.data) == null ? void 0 : k.dynamicStateData.stateUpdateDelayAfterMs) || 0)
                }
            }, ((e = d.data) == null ? void 0 : e.dynamicStateData.stateUpdateDelayBeforeMs) || 0)
        })))
    }