Loopy for YouTube

By CDM Last update Oct 4, 2008 — Installed 113,506 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 20 posts, 10 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
alala Scriptwright

Is it possible to enable the loop button by default? Sometimes I open multiple videos and it's a pain to press loop on each one.

 
CDM Script's Author

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

 
alala Scriptwright

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!

 
CDM Script's Author

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.

 
alala Scriptwright

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

 
apple User

Excellent. Thank you!

 
shikhanshu User

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

 
CDM Script's Author

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.

 
QuaraMan User

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!

 
CDM Script's Author

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.

 
xyzxyz11 User

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!

 
stif.fix User

@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

 
CDM Script's Author

Thanks, done and done. ^^

 
shikhanshu User

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

 
ben brown User

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

 
CDM Script's Author

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

 
ben brown User

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?

 
CDM Script's Author

Updated as you suggested, thanks for the comment.

 
Mrrix32 User

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

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel