Skip to content

Instantly share code, notes, and snippets.

@remcoboerma
Last active March 6, 2023 07:49
Show Gist options
  • Save remcoboerma/9450f9b92dbada54c9c73198863fe6dc to your computer and use it in GitHub Desktop.
Save remcoboerma/9450f9b92dbada54c9c73198863fe6dc to your computer and use it in GitHub Desktop.
Bookmarklet for downloading the MP3 of a YouTube video.
javascript: window.location = document.URL.replace("youtube", "listentoyoutube").replace("https://", "http://");
@weaming
Copy link

weaming commented May 1, 2017

Nice gist!

@LOuroboros
Copy link

Is this working with Mozilla Firefox v60.0.1?
I added the bookmarklet as if it was any other bookmark, then went to the Youtube video I wanted to get a .mp3 from, clicked on the bookmarklet in my bookmarks bar, and it took me to some website that wasn't working.
firefox_2018-05-28_12-49-34

And it's not just that, the whole location field got screwed up too, it looks like this now:
javascript:%20window.location%20=%20document.URL.replace("youtube",%20"listentoyoutube").replace("https://",%20"http://");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment