Categories
tutorial

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 replies on “YouTube Video Direct Download Script”

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…?)

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 *