Youtube Alternate Video Player

By Yansky Last update Dec 23, 2008 — Installed 25,845 times.

Suggestions

in
Subscribe to Suggestions 4 posts, 2 voices



Delvin Scriptwright
FirefoxWindows

This is certainly one of the more interesting scripts. Here are a few suggestions.

To avoid problems like this: http://www.youtube.com/watch?v=sn2qepWagbc# (URLs with a hash at the end) without using a bunch of splits and checks, just get the video id out of flashvars instead of using document.location.

vidID = fv.split("&video_id=")[1].split("&")[0];

Setting the ID of the embed to "movie_player" will allow YouTube (and other scripts like YouTube Enhancer ) to appropriately size it.

What is aLoader? Looks like base 64 data. Is it used for anything? If not perhaps it could be removed.

bgcolor="#ffffff" is basically useless and could be removed as well.

 
Yansky Script's Author
FirefoxWindows

I haven't updated this script in a while. All my scripts are released under a CC ( http://creativecommons.org/licenses/by-sa/3.0/ )license, so feel free to use/alter my code to make your own script.

 
Delvin Scriptwright
FirefoxWindows

Whoa, it took me while to get back to this. Sorry about that. I'll try uploading a revised version with a few extra updates after I look at it again. Also, per CC, how would you like to be attributed?

 
Delvin Scriptwright
FirefoxWindows

There we are; http://userscripts.org/scripts/show/63419 . Don't think I missed anything. I'll add more soon.

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