Skip to content

Instantly share code, notes, and snippets.

@ljsc
Created September 13, 2011 14:54
Show Gist options
  • Save ljsc/1213998 to your computer and use it in GitHub Desktop.
Save ljsc/1213998 to your computer and use it in GitHub Desktop.
Autoplay and loop youtube video
(function(){var l=window.location,u='http://youtube.com/v/'+/v=([A-Za-z0-9][^&]*)(?:&|$)/.exec(l.search)[1]+'?loop=1&autoplay=1';l.replace(u);})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment