Previously, we had seen quite a few ways to download Youtube videos via some software or plugin. If you considered to be easy, how about an easier way to Download Youtube Videos?

The trick is to run a JavaScript on your browser address bar and directly download the video of your choice from Youtube!

Download Regular Quality Youtube Video Direct Links

javascript:window.location.href = 'http://youtube.com/get_video?video_id=' + yt.getConfig('SWF_ARGS')['video_id'] + "&l=" + yt.getConfig('SWF_ARGS')['l'] + "&sk=" + yt.getConfig('SWF_ARGS')['sk'] + '&t=' + yt.getConfig('SWF_ARGS')['t'];


Download High Quality Youtube Video Direct Links [HQ]

javascript:window.location.href = 'http://youtube.com/get_video?video_id=' + yt.getConfig('SWF_ARGS')['video_id'] + "&fmt=18&l=" + yt.getConfig('SWF_ARGS')['l'] + "&sk=" + yt.getConfig('SWF_ARGS')['sk'] + '&t=' + yt.getConfig('SWF_ARGS')['t'];

Download High Definition Youtube Videos Direct Links [HD]

javascript:window.location.href = 'http://youtube.com/get_video?video_id=' + yt.getConfig('SWF_ARGS')['video_id'] + "&fmt=22&l=" + yt.getConfig('SWF_ARGS')['l'] + "&sk=" + yt.getConfig('SWF_ARGS')['sk'] + '&t=' + yt.getConfig('SWF_ARGS')['t'];

Steps to follow:

download-youtube-videos

  • Open any Youtube Video which you want to download.
  • Copy the whole script (according to Quality Needed – regular, HQ or HD) and paste it on the address bar of the browser where the video is open.
  • Now Press Enter Key and download of that Youtube video will start instantly!

That’s it! The video will be downloaded in .FLV format. You can use VLC Player to play the downloaded videos!

[via]BlogSolute

Subscribe via RSS or Email:
Raju is the founder-editor of Technically Personal. A proud geek and an Internet freak, who is also a social networking enthusiast. You can follow him on Facebook and on Twitter. Mail Raju PP.

21 Responses so far | Have Your Say!

  1. Wonderful technique. Can I reblog this. Post the script on my blog? With full credit to you on the post.

  2. Wow! It’s the best way ever to download vids. No need to use any add-ons or sofwares. Great!

  3. you can just use the activity tab of safari web browser..and double click on the video over there it gets downloaded very simple actually…

    click on window on the tabs on tob.. then click on activity and see where the video is and just double click its quite cool try it out…

  4. nice way to download videos… thanks a tonne..
    \is there any way to get videos of myspace too… will this work???

  5. Pretty good Idea,but I use Internet Download Manager(Trial also Works really good not much difference) It allows me to Download any FLV videos file on any website, and Its very simple to use too..

  6. You can save it as a Bookmark and click it when you want to download it. Works in Firefox.

  7. Thanks a lot but can you tell some way to download 3gp format directly rather than converting them from flv. I have seen few sites which offer same but dont work all d time.

  8. its not working any more

  9. Change SWF_ARGS to SWF_CONFIG

  10. Not working. Hic, youtube chang code???

  11. The changed it a few months ago =\

  12. bbcaster

    Anyone can please share updated script? I need it badly.

  13. N4melessS0ldier

    UPDATED SCRIPT (puts a download button on the page):

    javascript:var getQualityLink=function() { for(i=0;i<yt.getConfig('SWF_CONFIG').args.fmt_url_map.split(',').length;i++) { if(yt.getConfig('SWF_CONFIG').args.fmt_url_map.split(',')[i].split('|')[0] == 37 || yt.getConfig('SWF_CONFIG').args.fmt_url_map.split(',')[i].split('|')[0] == 22 || yt.getConfig('SWF_CONFIG').args.fmt_url_map.split(',')[i].split('|')[0] == 18) { return yt.getConfig('SWF_CONFIG').args.fmt_url_map.split(',')[i].split('|')[1] }; }; return yt.getConfig('SWF_CONFIG').args.fmt_url_map.split(',')[0].split('|')[1]; }; var createLink=function( l,t) { var oLnk=document.createElement( 'a') ;oLnk.setAttribute( 'href',l) ;oLnk.appendChild(document.createElement('br'));var oImg=document.createElement('img'); oImg.src='http://www.orbitdownloader.com/img2/download-botton.gif'; oLnk.appendChild( oImg );oLnk.setAttribute( 'style','display:inline;font:14px Times New Roman;text-decoration:underline;text-transform:none;') ;return oLnk} ; function enableDownload() { document.getElementById('watch-info').appendChild( createLink( getQualityLink(), 'Download') ); }; enableDownload();

  14. N4melessS0ldier

    oh and by the way. it should place a download button for the highest quality video.

  15. seems like the 25 Feb code above is sadly working no longer – shame cos it was great. Does anyone know of an update?

  16. This one really works!

    javascript:isIE=/*@cc_on!@*/false;isIE ? swfHTML=document.getElementById(‘movie_player’).getElementsByTagName(‘param’)[1].value:swfHTML=document.getElementById(“movie_player”).getAttribute(“flashvars”);
    w=swfHTML.split(“&”); for(i=0;i<=w.length-1;i++) if(w[i].split("=")[0] == "fmt_url_map"){links=unescape(w[i].split("=")[1]);break;}abc = links.split(",");for(i=0;i<=abc.length-1;i++){fmt=abc[i].split("|")[0];if(fmt==18){url = abc[i].split("|")[1];window.location.href = url + '&title=' + (((document.title.replace('#',' ')).replace('@',' ')).replace('*',' ')).replace('|',' ');}}

  17. it doesnt work 4 me

  18. N4melessS0ldier

    Sorry for the confusion from my posts…. This is an updated bookmarklet that actually created a download link with the correct filename and currently works (06/06/2011):

    javascript:var getQualityLink=function() { var oEndLnk = ‘&title=’ + escape(document.getElementById(‘eow-title’).getAttribute(‘title’)); for(i=0;i<yt.getConfig('PLAYER_CONFIG').args.fmt_url_map.split(',').length;i++) { var ytPlayerConf = yt.getConfig('PLAYER_CONFIG').args.fmt_url_map.split(',')[i].split('|')[0]; if(ytPlayerConf == 37 || ytPlayerConf == 22 || ytPlayerConf == 18) { return yt.getConfig('PLAYER_CONFIG').args.fmt_url_map.split(',')[i].split('|')[1] + oEndLnk; }; }; return yt.getConfig('PLAYER_CONFIG').args.fmt_url_map.split(',')[0].split('|')[1] + oEndLnk; }; var createLink=function( l,t) { var oLnk=document.createElement( 'a') ;oLnk.setAttribute( 'href',l) ;oLnk.appendChild(document.createElement('br'));var oImg=document.createElement('img'); oImg.src='http://www.orbitdownloader.com/img2/download-botton.gif'; oLnk.appendChild( oImg );oLnk.setAttribute( 'style','display:inline;font:14px Times New Roman;text-decoration:underline;text-transform:none;') ;return oLnk} ; function enableDownload() { document.getElementById('watch-info').appendChild( createLink( getQualityLink(), 'Download') ); }; enableDownload();

    • N4melessS0ldier

      make sure the quotes are actual single quotes…. it seems like this commenting thing changes the quotes and makes the script unusable

  19. facepalm

    These JavaScript methods no longer work in Firefox (and probably other browsers) due to some people getting tricked into pasting malicious code with promises of getting something cool in facespace, mybook or whatever.

  20. nice.. how to embed this javascript in a webpage.

Leave a Reply

Custom Search
Copyright 2012 Technically Personal!