Skip to content

Instantly share code, notes, and snippets.

@mmarcon

mmarcon/youtube-helium.js

Last active Nov 11, 2016
Embed
What would you like to do?
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