Skip to content

Instantly share code, notes, and snippets.

@mmarcon
Last active November 11, 2016 09:18
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 mmarcon/070ce434af531e5b2686a62ba1387433 to your computer and use it in GitHub Desktop.
Save mmarcon/070ce434af531e5b2686a62ba1387433 to your computer and use it in GitHub Desktop.
A bookmarklet to convert youtube video links into links that can be opened with Helium on macOS (http://heliumfloats.com/)
[].slice.apply(document.querySelectorAll('.yt-lockup-title a.spf-link')).forEach(l => {const h = l.getAttribute('href'); l.setAttribute('href', `helium://https://www.youtube.com${h}`)})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment