Skip to content

Instantly share code, notes, and snippets.

@eugeneware
Created September 27, 2012 11:57
Show Gist options
  • Save eugeneware/3793633 to your computer and use it in GitHub Desktop.
Save eugeneware/3793633 to your computer and use it in GitHub Desktop.
Jasmine Youtube App Bookmarklet
javascript:(function(){document.location.href='jasmine://video/'+document.location.href.match(/[\?&]v=([^&]+)/)[1]})();
javascript:(function() {var f = document.querySelectorAll('iframe[src*="youtube.com/embed"],embed[src*="youtube.com/v"]');if (f.length) { document.location.href='jasmine://video/'+f[0].src.match(/\/(embed|v)\/([^\?&]+)/)[2];}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment