Skip to content

Instantly share code, notes, and snippets.

@Pym
Last active January 12, 2019 03:55
Show Gist options
  • Save Pym/9467759 to your computer and use it in GitHub Desktop.
Save Pym/9467759 to your computer and use it in GitHub Desktop.
Popup Bookmarklet
javascript:window.open(window.location.href.replace(/^(.+youtube.com\/)(?:watch\?v=)(\w+)(?:&.+)?/gi, '$1embed/$2'), "_blank", "resizable=yes, scrollbars=yes, titlebar=yes, width=560, height=315, top=10, left=10");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment