Last active
November 21, 2019 15:22
-
-
Save timrwood/10746992 to your computer and use it in GitHub Desktop.
YouTube and Vimeo video player popout bookmarklett
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:!function(){var h=location.href,y=h.match(/(youtu.be\/|v\/|u\/\w\/|embed\/|v=)([^#\&\? ]*).*/),v=h.match(/(vimeo.com\/)([^#\&\? ]*)/);y=y&&'http://www.youtube.com/watch_popup/?v='+y[2];v=v&&'http://player.vimeo.com/video/'+v[2];window.open(y||v,"_blank","height=345,width=560");}() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks for that!