YouTube Video Direct Download Script

If you use Firefox, Safari, Google Chrome or Opera, you can download YouTube videos directly by pasting the following code into your address bar while watching the video.

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

When the download is finished, be sure to rename it with a .flv extension.

Alternatively, use this code:

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

to download in the higher quality mp4 format.

(via)

2 thoughts on “YouTube Video Direct Download Script”

  1. Tried it…both ways…where does it download to? (eg. desktop?)
    -I’m using an Apple

    or…

    is there something else I’m missing
    (ie. when do you place the code in…at the end of the movie, etc…?)

  2. I haven’t tried it with Safari, but it works like a charm with Firefox and Chrome. In both Firefox and Chrome the download starts immediately, you don’t need to wait for the video to finish loading and it saves to your default save location.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>