Created
May 29, 2016 08:02
-
-
Save snakeneedy/c869632202476965884dd309487e85de to your computer and use it in GitHub Desktop.
Make the video player on Youtube embed.
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()%7Bvar%20uri=window.location.href;window.location.href=uri.replace(/watch%5C?v=/,%22embed/%22);%7D)(); | |
// Source code: | |
/* | |
javascript:(function(){ | |
var uri = window.location.href; | |
window.location.href = uri.replace(/watch\?v=/, "embed/"); | |
})(); | |
*/ | |
// One-line code: | |
/* | |
javascript:(function(){var uri=window.location.href;window.location.href=uri.replace(/watch\?v=/,"embed/");})(); | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment