Youtube video loop hack (javascript)

Sometimes i want to listen to music from Youtube over and over, but i don’t like to hit play every time. As Youtube player don’t have the repeat button, i wrote an script to do it for me.

Just copy and paste the following code on your browser’s address bar (you can create a bookmark with this code).

javascript:swfUrl=%22/v/%22+swfArgs.video_id +%22&autoplay=1&loop=1%22;writeMoviePlayer(%22playerDiv%22, true);void(null);

[20080416 15h30] update
Youtube crew has recently modified the name of the video div container. Now it is working again (you can create a bookmark with this code).

7 replies on “Youtube video loop hack (javascript)”

How do you use this code? Is the java script inserted at the end of the youtube url address? Thanks for any feedback.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.