Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YouTube JS Tamer] Review Memory Leakage #46

Open
cyfung1031 opened this issue Jun 29, 2024 · 0 comments
Open

[YouTube JS Tamer] Review Memory Leakage #46

cyfung1031 opened this issue Jun 29, 2024 · 0 comments
Assignees

Comments

@cyfung1031
Copy link
Owner

cyfung1031 commented Jun 29, 2024

List of Possible Sources

  • WEAK_REF_BINDING
  • FIX_VIDEO_BLOCKING

Yt Code Leakage

      , BHb = function(a, b, c) {
        document.querySelectorAll("ytd-playlist-video-renderer").forEach(function(d, e) {
            d.style.viewTransitionName = "ytd-playlist-video-renderer-" + String(e)
        });
        document.startViewTransition(function() {
            var d = document.querySelectorAll("ytd-playlist-video-renderer")[b];
            d.remove();
            var e = document.querySelectorAll("ytd-playlist-video-renderer");
            c === 0 ? e[c].before(d) : e[c - 1].after(d)
        }).finished.then(function() {
            document.querySelectorAll("ytd-playlist-video-renderer").forEach(function(g) {
                g.style.viewTransitionName = ""
            });
            var d = b > c ? "up" : "down"
              , e = Math.abs(b - c);
            e > a.clientHeight / 112 && DHb(e, d)
        })
    }
  • leakage in a.clientHeight
@cyfung1031 cyfung1031 self-assigned this Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant