From 8b251aa3d65e324b8a539a54137a51858477d531 Mon Sep 17 00:00:00 2001 From: Ted Michael Celis Date: Fri, 10 May 2024 13:45:27 -0700 Subject: [PATCH] fix scroller returner --- ytscroller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytscroller.js b/ytscroller.js index f8ef6c1..0c399e6 100644 --- a/ytscroller.js +++ b/ytscroller.js @@ -77,7 +77,7 @@ window.addEventListener("resize", videoAnchor); requestAnimationFrame(scrollToXY); } } - if (e.target.classList.contains("yt-simple-endpoint") && e.button == 0) { + if (/[?&]t=\d+s/.test(e.target.href)) { x = window.scrollX; y = window.scrollY; returner.style.display = "block";