Skip to content

Commit

Permalink
fix scroller returner
Browse files Browse the repository at this point in the history
  • Loading branch information
Krazete committed May 10, 2024
1 parent 803e6e1 commit 8b251aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ytscroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 8b251aa

Please sign in to comment.