Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install
Loopy for YouTube
Displays a link below YouTube videos to enable/disable auto replay. Loop your favourite music clips over and over again. *NEW* YouTube playlist support!
- Some users have reported Adblock Plus still causes a conflict, so please make sure you have Firefox, ABP and Flash all up-to-date.
If the script still doesn't work try either of the following:-
- Disable "Show tabs on Flash and Java" in ABP options.
- Add an exception rule for youtube. "@@|*.youtube.com/watch?v=*"

You could comment on this script if you were logged in.

login to vote
Yep, so the loop button can align to the bottom right of video properly. Glad you got it sorted. ^^
login to vote
thanks! I assume that the change to yousabletubefix is to stop the loopy button from showing up on the far right of the page.
EDIT: I looked at the script to try and modify it, but this is what I saw:
// Resizes the player player.style.width = newW.toCSS(); player.style.height = newH.toCSS(); // Centers the player, video title and resize links horizontally var posOffset = (((vw - newW) / 2) - oPlayerDivData.xPos).toCSS(); // Calculates the offset --> ((Container width - Content width) / 2) - Content Initial Position; [playerDiv, vidTitle, linkDiv].forEach(function(n) { n.style.position = "relative"; // Enables CSS relative positioning n.style.left = posOffset; // Sets the offset });There is no "resize the player div too!" comment! Should I add both
playerDiv.style.width = newW.toCSS();
and// Resize the player div too!
EDIT: damn, this post is getting long. Anyways, never mind the above question. I added both lines and it works great!
login to vote
Hi Alala,
I've modified the CSS slightly to fix compatibility issues on my side, and I recommend a minor change to the YousableTubeFix script..
// Function used to resize video function resizeVideo(aSize) { <...> // Resizes the player player.style.width = newW.toCSS(); player.style.height = newH.toCSS(); // Resize the player div too! playerDiv.style.width = newW.toCSS(); <...> }Add the line(s) in bold and all should be sweet, happy looping.
login to vote
could you possibly look into the issue of incompatibility with the yousabletubefix script (http://userscripts.org/scripts/show/13333) ? thank you.
login to vote
Excellent. Thank you!
login to vote
haha... this is so cool... i installed ABP an hour ago... noticed the loopy issue just now... came here to see what was up, and i find that its already solved... the new script works fine with abp... thanks ppl! u guys rock
login to vote
Thanks QuaraMan! I've updated the script with some of your embed code and gave you some credit. Hopefully all goes well, happy looping loopers.
login to vote
The script will not work with Adblock Plus because the use of unsafeWindow leads to security errors.
I have rewritten the script a little bit so it embeds all the functions and global vars in the page. This makes it unnecessary to use the unsafeWindow. functionality and it works with Adblock Plus.
under this URL you can see my version:
Nevsworld at TiddlyspotCopy the whole text between the heading "Code" and the heading "Code Ends Here" into your local file.
Happy Looping!
login to vote
Regarding Adblock Plus, I had noted the bug you mention previously.. but after a couple of script revisions and/or possibly the Firefox 3.0.1 update, I am able to run both without any problems and had thought the bug be squashed.
Thanks for your input though, seems this bug still exists for some people.. so I'll re-add the details.
ps. If you are up for some troubleshooting, make sure Firefox, ABP and Flash are all up-to-date and try with minimal extensions enabled. Hopefully we can find a way to finally resolve it.
login to vote
Ditto on the Adblock plus issue...I was really puzzled why this wasn't working even though "Loop" displayed properly. Thanks a lot for the script - looping ocean waves and other white noise is a real lifesaver for me!
login to vote
@CDM:
This script does NOT work with Adblockplus!
You have to deactivate it on youtube, then it works!
You maybe should write this into the description of the script
login to vote
Thanks, done and done. ^^
login to vote
suggestion... please add "http://youtube.com/watch?v=*" as well ...btw, thanks a zillion ton for this!!! had been looking around for such a thing since a long time... :)
login to vote
It works! Thanks a lot CDM, you are really awesome to do this for everyone.
login to vote
Fixed compatibility issues with Opera, let me know how it goes.
login to vote
Anybody know if this should work on the Opera web browser. Probably obviously, I am not skilled in computers but I have been searching for a loop utility for youtube (via google) nearly weekly for months. I finally found this, but after creating a folder on my desktop, saving (via the install this script button at the top of this page) the javascript file there, and then right-clicking, finding edit site preferences->scripting>user scripts (finding the js-containing folder on my desktop and pressing ok) I don't get the loop button--even after restarting my browser. Is this script incompatible with opera or did I do something wrong?
login to vote
Updated as you suggested, thanks for the comment.
login to vote
change www. to *. if your using an international version of YouTube (eg. UK)