Youtube scroll lock timestamp in picture-in-picture

When using Picture-in-Picture (PiP), don't scroll to the top of the page when clicking on a timestamp that displays the time of the video.

当前为 2023-05-16 提交的版本,查看 最新版本

作者
ziopuzzle
评分
0 0 0
版本
1.3
创建于
2022-09-18
更新于
2023-05-16
大小
3.6 KB
许可证
MIT
适用于

Youtube scroll lock time link in picture-in-picture

The playback time link in the comment is very useful.
However, it scrolls to the top of the page each time it is clicked.
If you are using picture-in-picture, it can be annoying to go back to the top of the page.
This user script is intended to remedy that.

🔍Feature
・When using picture-in-picture (in Chrome, you can select this option by right-clicking twice on video),
clicking the playback time link in the comments section will hold the scroll position (move to the top of the page for a moment).

🔧How to
・Install this userscript.

📃Change log
1.0 : release
1.1 : bugfix
1.2 : support https://gf.qytechs.cn/en/scripts/444382-youtube-mini-player
But, "delay: 500" add to the IntersectionObserver options.
ex) "threshold: 0.5" -> "threshold: 0.5, delay: 500"
1.3 : fix broken script.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址