您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
保存和回溯YouTube首页推荐内容,防止误点刷新后丢失想看的视频推荐
English:
This userscript saves and lets you review the YouTube homepage recommended videos. It helps you avoid losing interesting suggestions if you accidentally refresh the page.
Originally written with Claude.
中文:
这个油猴脚本用于保存并回溯 YouTube 首页的推荐内容,防止因为误点刷新而丢失那些你本想点开的好视频。
使用 Claude 协助编写。
No data collection or external requests.
自动记录 YouTube 首页推荐内容
可回溯并查看过去的推荐视频
深色模式适配
不收集任何数据,无外部请求
By default, only the latest 5 records of homepage recommendations are kept.
You can modify the line recommendationHistory.length > 6
to change this limit.
However, setting the number too high may not work reliably.
The history is automatically cleared after 1 hour by default.
You can change the line const maxAge = 1 * 60 * 60 * 1000
to adjust the time limit.
Note: The actual expiration behavior may also be influenced by other browser or YouTube mechanisms,
so the interval might not be strictly one hour.
默认仅保留最近 5 条 首页推荐记录。
你可以通过修改 recommendationHistory.length > 6
以自定义上限。
但如果设置的数字太大,可能无法生效。
历史记录默认在 1 小时后自动清理。
你可以通过修改 const maxAge = 1 * 60 * 60 * 1000
以自定义清理时间。
注意:实际的过期机制可能还受到浏览器或 YouTube 自身的影响,
因此不一定严格是 1 小时。
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址