Last active
December 19, 2015 12:49
-
-
Save alex2awesome/5957759 to your computer and use it in GitHub Desktop.
This file contains 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
//so far, this opens a new page and embeds the video in this page. | |
javascript: | |
window.open().document.write( | |
'<iframe id = \"video\" title=\"YouTube video player\" class=\"youtube-player\" type=\"text/html\"' + | |
'width=\"560 \" height=\"315\" src=\"http://www.youtube.com/embed/ | |
' + location.search.split(/=/)[1] + '\"' + | |
'frameborder=\"0\" allowFullScreen></iframe>') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment