Skip to content

Instantly share code, notes, and snippets.

@exurd
Last active February 2, 2025 02:24
Show Gist options
  • Save exurd/94bbe2ca91214356705d399a7cde2e3b to your computer and use it in GitHub Desktop.
Save exurd/94bbe2ca91214356705d399a7cde2e3b to your computer and use it in GitHub Desktop.
Find YouTube videos via the Internet Archive (Bookmarklet)

YouTube to Internet Archive

This bookmarklet allows you to "redirect" from videos that got private or deleted (or still alive) and was preserved by tubeup.

The reason this script exists is because videos archived with that program will become hidden to everyone except the archiver, meaning no one can find the videos. However, you can still access them by using the same URL with the video id, which is what this script does (although not automatically).

It does this by opening a prompt where you can paste the youtube URL you want to find. In the no copy version it still opens in a prompt, but the URL on the current tab is used.

Installation

To use it, just select the whole code and drag it into the bookmark bar. You can then click the link on any youtube link and access the internet archive counterpart (if there is one).

Remarks

Would love if there was an extension instead that automatically finds the videos that are private or deleted, just like how the Wayback Machine extension works.

It would make the whole process a lot easier and could help people find videos for research, entertainment or historical purposes.

It would also be fantastic if it also expanded to other sites that youtube-dl supports (e.g. Vimeo, Twitch, Facebook, Twitter, etc.), allowing for a way to find videos around the internet with ease.

javascript: (function() { var val = prompt("Enter a YouTube Video URL:", location.href); var url = val.split("https://www.youtube.com/watch?v=").pop(); if (url) location = "https://archive.org/details/youtube-" + escape(url)})()
javascript: (function() { var val = prompt("Enter a YouTube Video URL:", ""); var url = val.split("https://www.youtube.com/watch?v=").pop(); if (url) location = "https://archive.org/details/youtube-" + escape(url)})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment