prosenjit-itobuz
7/11/2016 - 6:13 PM

Youtube video downloader script

Youtube video downloader script

// go to the youtube video page using iPhone as user-agent and run the following script:

var xhr=new XMLHttpRequest();
xhr.open("GET",location.href,true);
xhr.onload=function(){
 var r=xhr.responseText;
 r=r.substring(r.indexOf('url_encoded_fmt_stream_map'),r.length);
 r=r.substring(r.indexOf('url=http')+4,r.length);
 r=r.split('url=');
 location.href= 
  decodeURIComponent(r[0].substring(0,r[0].indexOf('\\\\')));
};
xhr.send();