YouTube推荐内容回溯

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

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Kibidango086
日安装量
0
总安装量
33
评分
2 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 小时。