[YouTube JS Tamer] Review Memory Leakage
Closed this issue · 0 comments
cyfung1031 commented
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