YouTube Archive Me Button

Adds an "Archive Me" button to YouTube video action panels that redirects to PreserveTube.com with the current video URL.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
Ghosty-Tongue
日安装量
0
总安装量
4
评分
0 0 0
版本
1.0
创建于
2025-10-30
更新于
2025-10-30
大小
3.7 KB
许可证
MIT
适用于

YouTube Archive Me Button

A simple, lightweight userscript that adds a dedicated "Archive Me" button next to the Like/Dislike controls on any YouTube video watch page, allowing for one-click preservation of the video's URL.

🗃️ Functionality

This script serves a single purpose: to help users quickly archive YouTube content using a third-party service.

When you click the new Archive Me button, the script immediately redirects your browser to: https://preservetube.com/save?url=[CURRENT_YOUTUBE_URL]

This is extremely useful for:

  • Preservation: Ensuring that video metadata and potential downloads are saved before a video is deleted or made private.

  • Speed: Eliminating the need to copy the URL, navigate to the archiving site, and paste the link manually.

  • Seamless Integration: The button is styled to mimic YouTube's modern UI (including the hover effect and button shape) and is placed logically next to the engagement controls.

Technical Details (Greasy Fork Compliance)

  • No External Dependencies: The script runs entirely using native browser JavaScript and does not load external libraries via @require or any other method, keeping it fast and secure.

  • No Tracking or Ads: The code contains no anti-features, tracking, ads, or miners.

  • Match Pattern: The script only runs on YouTube watch pages (*://www.youtube.com/watch?v=*).

  • DOM Reliability: It uses waitForElement and a MutationObserver to ensure the button appears reliably even when navigating between videos on YouTube's Single Page Application (SPA) architecture.