Skip to content

Instantly share code, notes, and snippets.

@DessertArbiter
Last active June 19, 2021 00:49
Show Gist options
  • Save DessertArbiter/031add6eee1cb4b159715d20a288b681 to your computer and use it in GitHub Desktop.
Save DessertArbiter/031add6eee1cb4b159715d20a288b681 to your computer and use it in GitHub Desktop.
Get YouTube video file from Internet Archive Wayback Machine

What it does

Prompts the user to input the ID of a YouTube video (the string of random characters after the v= in the URL), and if the video has been archived on archive.org, takes the user directly to the video file.

Installation

Bookmark this page, edit bookmark, replace URL contents with contents of bookmarklet.js.

Make sure the URL starts with javascript:, as most modern browsers will automatically remove that from copied content.

javascript:var video_id = prompt('YouTube video ID');void(location.href='https://web.archive.org/web/2oe_/http://wayback-fakeurl.archive.org/yt/' + video_id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment