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!

Known bugs:-
  • 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=*"






1 point
login to vote
CDM script's author
Posted 1 day ago

Yep, so the loop button can align to the bottom right of video properly. Glad you got it sorted. ^^

1 point
login to vote
Alala scriptwright
Posted Oct 4, 2008 11:32pm

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!

1 point
login to vote
CDM script's author
Posted Oct 4, 2008 12:35pm

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.

1 point
login to vote
Alala scriptwright
Posted Oct 3, 2008 1:18am

could you possibly look into the issue of incompatibility with the yousabletubefix script (http://userscripts.org/scripts/show/13333) ? thank you.

1 point
login to vote
apple user
Posted Sep 3, 2008

Excellent. Thank you!

1 point
login to vote
shikhanshu user
Posted Aug 9, 2008

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

1 point
login to vote
CDM script's author
Posted Aug 4, 2008

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.

1 point
login to vote
QuaraMan user
Posted Aug 3, 2008

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 Tiddlyspot
Copy the whole text between the heading "Code" and the heading "Code Ends Here" into your local file.

Happy Looping!

1 point
login to vote
CDM script's author
Posted Aug 3, 2008

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.

1 point
login to vote
xyzxyz11 user
Posted Aug 2, 2008

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!

1 point
login to vote
stif.fix user
Posted Aug 2, 2008

@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

1 point
login to vote
CDM script's author
Posted Jul 10, 2008

Thanks, done and done. ^^

1 point
login to vote
shikhanshu user
Posted Jul 10, 2008

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

1 point
login to vote
ben brown user
Posted Jul 4, 2008

It works! Thanks a lot CDM, you are really awesome to do this for everyone.

1 point
login to vote
CDM script's author
Posted Jul 4, 2008

Fixed compatibility issues with Opera, let me know how it goes.

1 point
login to vote
ben brown user
Posted Jul 3, 2008

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?

1 point
login to vote
CDM script's author
Posted Jul 2, 2008

Updated as you suggested, thanks for the comment.

1 point
login to vote
Mrrix32 user
Posted Jul 1, 2008

change www. to *. if your using an international version of YouTube (eg. UK)

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