The Following User Says Thank You to Addison For This Useful Post: | ||
|
2011-06-19
, 23:28
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#2
|
|
2011-06-21
, 01:51
|
Posts: 670 |
Thanked: 367 times |
Joined on Mar 2009
|
#3
|
The Following User Says Thank You to buurmas For This Useful Post: | ||
|
2011-06-21
, 01:54
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#4
|
|
2011-06-21
, 03:54
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#5
|
|
2011-06-21
, 04:23
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#6
|
|
2011-06-21
, 04:38
|
Posts: 141 |
Thanked: 41 times |
Joined on Apr 2011
@ Ahmedabad, India
|
#7
|
The Following User Says Thank You to dtparikh For This Useful Post: | ||
|
2011-06-21
, 04:47
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#8
|
|
2011-06-21
, 06:25
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#9
|
The Following User Says Thank You to Addison For This Useful Post: | ||
|
2011-06-21
, 06:45
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#10
|
I love this script on my Windows XP computer.
javascript:(function() {
function get_filetype(fmt_id) {
switch(fmt_id) {
case '5':
case '34':
case '35':
return 'FLV';
case '18':
case '22':
case '37':
case '38':
return 'MP4';
default:
return 'unknown';
}
}
function get_video_url(fmt_url_map, chosen_fmt_id) {
fmt_url_map=fmt_url_map.substring(fmt_url_map.inde xOf(chosen_fmt_id+'|')+chosen_fmt_id.length+1);
if(fmt_url_map.indexOf(',')!==-1) {
return fmt_url_map.substring(0, fmt_url_map.indexOf(','));
} else {
return fmt_url_map;
}
}
(function main() {
var args=yt.getConfig('PLAYER_CONFIG')['args'];
var fmt_quality_list='';
var chosen_fmt_id=0;
var fmt_info=args['fmt_list'].split(',');
var fmt_resolution='';
var avail_fmt_ids=new Array(fmt_info.length);
for(var i in fmt_info) {
avail_fmt_ids[i]=fmt_info[i].split('/')[0];
fmt_resolution=fmt_info[i].split('/')[1];
fmt_quality_list+=(avail_fmt_ids[i]+' = '+fmt_resolution+' ('+get_filetype(avail_fmt_ids[i])+')\n');
}
loop: while(true) {
chosen_fmt_id=prompt('Please enter a format id.\n'+fmt_quality_list, avail_fmt_ids[0]);
if(chosen_fmt_id===null) {
return;
}
for(var i in avail_fmt_ids) {
if(chosen_fmt_id===avail_fmt_ids[i]) {
break loop;
}
}
}
window.open(get_video_url(args['fmt_url_map'], chosen_fmt_id)+'&title='+document.getElementsByNam e('title')[0].content);
}());
}());
Just go to a Youtube video and simply copy and paste that in the address bar. :)
So yeah, is there any way to inject this into Tear or MicroB?
I'm really hoping for a response on this. :)
Last edited by Addison; 2011-06-19 at 01:16.