Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
A great idea :) Way to go! |
|
|
Oooopsss... Sorry I sent the comment to the wrong page... BTW, I love your script, so I wanted to port some of its feature back to the main "Youtube alternate player" script. |
|
|
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);
|