Skip to content

Instantly share code, notes, and snippets.

@Venipa
Created October 18, 2019 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Venipa/41f01d0d267be2c99764ef7060f14b7d to your computer and use it in GitHub Desktop.
Save Venipa/41f01d0d267be2c99764ef7060f14b7d to your computer and use it in GitHub Desktop.
Add the Bookmark with this code as url
javascript:"use strict";!function(){const e=new URL(window.location.href);const t=/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i;if(!t.test(e.href))return;const o=t.exec(e.href)[1];var n,i;o&&(n=o,(i=document.createElement("a")).style="position: absolute; z-index: -1; width: 0; height: 0; opacity: 0",i.href="https://yt2mp3.venipa.net/video/"+n,i.target="_blank",i.click(),i.remove())}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment