Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Youtube Alternate Video Player

Replaces the youtube flash video player with FlowPlayer flash video player. ( flowplayer.org )

//0.8 changes - updated for site changes.
//0.7 changes - fixed the problem with the new youtube video URLs.
//0.6 changes - updated for changes on youtube.
//0.5 changes - changed the way the script works to make it compatible with the changes in greasemonkey.
//0.4 changes - removed the original player earlier so that the original player wont accidentally play if the script takes a while to get the new player (can happen sometimes with slow broadband)
//0.3 changes - fixed an issue with "related" urls
//0.2 changes - fixed so it works on www.youtube.com urls as well as http://youtube.com

Features:
  • Prevents video from autoplaying
  • Buffers the video automatically without having to play it first

Screenshot:







May 2, 2008
georgie Scriptwright

Why do I get a horizontal scrollbar when I have this script enabled?

Normally I dont have a horizontal scrollbar on Youtube.


 
May 2, 2008
Stanmishan User

Hi ,

What we want it’s to share this script, this php script get you the youtube flv file at runtime.
With it , it’s easy to develop alternate youtube player.

And if someone want to develop online youtube player with it, we will publish it on our website.

Jookydo.


 
May 2, 2008
Yansky Script's author

@Stanmishan - why would I bother?


 
May 2, 2008
Stanmishan User

Hello !

You can use our php library to get the youtube flv source :
Juste add this in your script :

http://www.jookydo.com/fc/get_flv.php?url_vid=y...

like this :
http://www.jookydo.com/fc/get_flv.php?url_vid=h...

Jookydo.com


 
Apr 27, 2008
Yansky Script's author

!Simon - http://userscripts.org/scripts/show/25620


 
Apr 23, 2008
Treviño User

I've added the code (below) based on YouTotem after the 'else if(iCanHazSpanna){'; now I can use the alternate player to play the best video quality available ;)

if(pD) {	
			var z = null;
			var scripts = document.getElementsByTagName('script');
			for(var i = 0; i < scripts.length && z == null; ++i) {
				z = scripts[i].text.match(/video_id": "([^"]+).+, "t": "([^"]+)/);
			}
				
			if(z == null) {
				alert('Unable to find video source');
				return;
			}
			
			var videosrc = 'http://youtube.com/get_video?video_id=' + z[1]+ '&t=' + z[2];
			var quality = '18'
        		videosrc += '&fmt=' + quality;

			var spanTex = encodeURIComponent(videosrc);

Then you can also add the code for changing quality directly from the GM menu, and for increasing the player size.

My full (with all the features listed above) script is here: http://paste.ubuntu-nl.org/64117/


 
Apr 21, 2008
simon! Scriptwright

Yansky, can you build a new script with JW FLV Player?? (see request here)

Thanks


 
Apr 20, 2008
simon! Scriptwright

Thank you so much!

Great job.


 
Apr 20, 2008
georgie Scriptwright

great script, but 2 comments:

1) Can the "fish" logo in fullscreen be a bit smaller? Its too big imho
2) When in fullscreen, it doesn't keep the aspect ratio. Can this be fixed?


 
Apr 18, 2008
leecovuk User

Thanks Yansky, now working fine for me too.
I like this player better than that/those offered by your Firefox extension version.

Lee


 
Apr 17, 2008
Miccovin User

Thank you! Works. :)


 
Apr 16, 2008
Yansky Script's author

I updated it.


 
Apr 16, 2008
Miccovin User

pleeeease update! :)


 
Apr 12, 2008
eminn3m Scriptwright

ya youtube did change it's layout and it's not longer working. Would love an update, thanks!


 
Apr 10, 2008
leecovuk User

Hello Yansky,

I like this script and find it very useful, however I am finding today it isn't working.
Has www.youtube.com changed its layout? It looks a little different to me, so maybe they have.

Thanks a lot,
Lee in England


 
Apr 3, 2008
Yansky Script's author

@Derek Rogerson - there's a different player available if you use the extension version.

http://forboden.com/2008/02/17/youtube-alternat...


 
Apr 3, 2008
Derek Rogerson User

I really hate this player. It doesn't work. Sound volume is messed up after video seek/skip.


 
Mar 20, 2008
Stanmishan User

See my website www.jookydo.com to find free Youtube online player video, without downloading the video.


 
Mar 18, 2008
Yansky Script's author

This is a greasemonkey script.


 
Mar 16, 2008
Wanda Fuca User

This script sounds interesting. I'm sad to report that I don't quite get it. I have some YouTube playlists I would love to display on my site in FlowPlayer.

Will someone please be so kind as to post the URL of a site which uses this script to display a YouTube playlist in Flowplayer?

Thanks


 
Mar 13, 2008
DeathWolf User

Hum. I tried the testcase of the bug posted, but it worked here. Could it be more of an issue of cross-site httprequest maybe?


 
Mar 6, 2008
Yansky Script's author

@DeathWolf - there's a problem with greasemonkey and FF Beta 3. I've posted to the greasemonkey dev group, but haven't received a response yet.

http://groups.google.com.au/group/greasemonkey-...


 
Feb 22, 2008
DeathWolf User

This script is not working here with firefox 3 nightlies/b3. It simply keeps on showing the "Loading flowplayer" text&icon and never goes beyond that. Note: I tried with a clean profile and it did the same.


 
Feb 18, 2008
bobielawlintine Scriptwright

Could the script be changed so it uses the Dark air skin for flowplayer?

I like it more :)


 
Feb 18, 2008
Yansky Script's author

Here's the new link for the extension version. I've made some changes.

http://forboden.com/2008/02/17/youtube-alternat...


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