Google Chrome: Use Bookmarklets to Download YouTube Videos

Contributor Icon Contributed by shamanstears Date Icon October 7, 2008  
Tag Icon Tagged: Google

By using a couple of bookmarklets, you can easily download any YouTube video to your computer without the use of any other software. Once you have the video downloaded, you simply rename the file and it’s set to go.

Note: the credit for the great javascript behind the bookmarklets goes to Lawrence Albert at Unlock for This

1. Open Chrome.

2. Right-click the Bookmarks bar and select Add Page.

3. In the Name textbox, input the word Download FLV.

4. In the URL textbox, input the following:
javascript:window.location.href = 'http://youtube.com/get_video?video_id=' + swfArgs['video_id'] + "&l=" + swfArgs['l'] + "&sk=" + swfArgs['sk'] + '&fmt_map' + swfArgs['fmt_map'] + '&t=' + swfArgs['t'];

5. Make sure that the Bookmarks bar folder is selected and click OK.

6. Right-click the Bookmarks bar and select Add Page.

7. In the Name textbox, input the word Download MP4.

8. In the URL textbox, input the following:
javascript:window.location.href='http://youtube.com/get_video?video_id='+swfArgs['video_id']+"&fmt=18"+"&l="+swfArgs['l']+"&sk="+swfArgs['sk']+'&fmt_map'+swfArgs['fmt_map']+'&t='+swfArgs['t'];

9. Make sure that the Bookmarks bar folder is selected and click OK.

Rename the downloaded file to a appropriate name. You will also need to add the .flv extension to the downloaded FLV file.

OR just drag these links to your Bookmarks bar:

Download FLV

Download MP4

To fix the icons for your newly created bookmarklets, follow the instructions here.

Previous recipe | Next recipe |
 
  • nice tip, thank
  • wonderful, thanks
  • darkgohst
    google chrome don't work whit my vista ultimate 64 bit correct !!!!!!!!!!!!
  • hello, kindly put the source of the article.
    Thanks in Advance!
    http://unlockforus.blogspot.com/2008/09/directl...
  • Lawrence - consider it done! I ran across your great javascript in a newsgroup article and couldn't identify the source. Great job on it, works like a dream! Thanks for letting me know about this, it's important to me to give proper credit where it is due.
  • I use VideoGet. It downloads from YouTube, GoogleVideo, MetaCafe, MySpase, Photobucket and other 600+ video websites.
    Full List of supported videos websites:
    http://nuclear-coffee.com/php/supported_service...

    VideoGet also providing you with ability to convert each video in most popular formats for more comfortable video playback. VideoGet supports AVI, MPEG1, MPEG2, WMV, FLV, MP4, 3GP, MP3 file formats, so you will be able not only to view it, but also put it into your iPod, mobile phone or any other portable device. One-click-download-convert. Plugins for Internet Explorer and Mozilla FireFox browser

    http://nuclear-coffee.com/VideoGet
  • David Miles
    Is there a way to get this to pull the file name as well? Otherwise I just end up with a load of video.mp4 files and I've no idea what each one is about
  • Unfortunately, there is no way (that I have found) to pull the file name. You need to rename them as each download has completed.
  • Charome
    Is there any possibility to make it downloading videos instantly from cashe memory like real player does? Im using real player 11 for very fast downloading in IE, but its not working in chrome
  • Saga
    its really good... how to download swf files in google chrome
  • Jacopo Belbo
    Very Nicely done. Thanks!
  • Hunter
    Incredible tip! Thank you!
  • gaucho~suave
    Sweet tip! It worked inOpera too...
  • Saurabh Samir
    Fabulous idea !
    Works fantastically well.
    Thank you very much sir for your kind aid.
  • alejandro torres
    thaks my friends, desde Quito - Ecuador, your help is nice.
  • Subliminal
    It works quite nice most of the time, but I found a video where it didn't. Here's the link:
    http://mx.youtube.com/watch?v=NYVQB9TZnH0
    Tried switchng to high quality and then pressing on the bookmark again but I get an error message saying something about incorrect parameters, in red. If it didn't work there, I'm guessing the same would apply to other videos.
    Please fix the links to bookmark in order to download videos like that one.
  • Subliminal
    I mean, I even tried switching to high quality on youtube and then pressing on the bookmark again, but it didn't work either.
  • dessea
    really helpful thanks a lot!
  • eduardo
    no manches eres super te lo agradesco deberas chido eres lo maxmo
  • kumar
    It works like a charm
  • JP
    work's thank yhou
  • Kasper
    thank you
blog comments powered by Disqus