YouTube推荐内容回溯

保存和回溯YouTube首页推荐内容,防止误点刷新后丢失想看的视频推荐

作者
Kibidango086
日安装量
0
总安装量
11
评分
1 0 0
版本
1.7
创建于
2025-06-10
更新于
2025-06-14
大小
29.2 KB
许可证
MIT
适用于

YouTube Recommendation History (YouTube推荐内容回溯)

📝 Description | 简介

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 协助编写。


🔧 Features | 功能特性

  • Automatically records YouTube homepage recommendations.
  • Allows you to go back and view previous recommendations.
  • Dark mode support.
  • No data collection or external requests.

  • 自动记录 YouTube 首页推荐内容

  • 可回溯并查看过去的推荐视频

  • 深色模式适配

  • 不收集任何数据,无外部请求


📓 Notes | 注意事项

  • 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或关注我们的公众号极客氢云获取最新地址