YouTube Archive Me Button

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

Auteur
Ghosty-Tongue
Installations quotidiennes
0
Installations (total)
2
Notes
0 0 0
Version
1.0
Créé
30/10/2025
Mis à jour
30/10/2025
Taille
3,67 ko
Licence
MIT
S'applique à

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.