Youtube video loop hack (javascript)

Written by

in

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).

Comments

7 responses to “Youtube video loop hack (javascript)”

  1. Marco Gomes Avatar

    Try songza.com to make playlists with YT and other streaming services.

  2. Princess Sarah Avatar
    Princess Sarah

    thank you!!! this is gold!

  3. Tuna Avatar
    Tuna

    thanks!! great script

  4. hotdogski Avatar
    hotdogski

    How to make this work with the movie fullscreen?
    thnx

    /jnski

  5. tom Avatar
    tom

    How do I use this code? I always get a malformed video id.

  6. dcfghjksdfg Avatar
    dcfghjksdfg

    thanks

  7. qaz70 Avatar
    qaz70

    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.