Main menu:


Please consider a small donation:



Or you can donate bitcoin:


Thanks to TekLinks in Birmingham, AL, for providing colocation and bandwidth.

Page Rank


FOSS Force Best Blog--2013 Award

Recent posts

Recent comments

About this blog

I am Eric Hameleers, and this is where I think out loud.
More about me.


Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 425 other subscribers

My Favourites



April 2019
« Mar    

RSS Alien's Slackware packages

RSS Alien's unofficial KDE Slackware packages

RSS Alien's multilib packages

RSS Slackware64-current



Youtube HD mp4 download

*** This post was updated with new JavaScript code on 27-oct-2009 ***

Sure, you can install Video Downloadhelper for Firefox if you want an easy way to download your favourite YouTube videos.

However, these will be downloaded in “FLV” format (Flash video). Nowadays, many videos on YouTube are available in High-Definition (HD) format and you may want to retrieve the higher quality (MP4) movies instead.

Here is a bit of JavaScript which checks if the movie you selected is available as HD 720p. If a HD format is available it will be the preferred download type (fmt24) instead of the usual “high” (fmt18) or

I got the javascript code from this page, which I found after my original javascript code stopped working (I guess Google removed the javascript functions to block folks like us): . The new code is a lot uglier than the initial javascript, but it works. That page also has the same code available, nicely reformatted, as a GreaseMonkey script if you have that firefox extension already installed.

Define the following text as a bookmark and you are only a click away from downloading HD YouTube videos (in Firefox, right-click the link below and select “bookmark this link“):


Note: this was the old code which now will no longer work:


The proof of the pudding is in the eating. Select a YouTube video, click on “pause” if you do not want to play it in the embedded video frame. Then, click on the bookmark you created and the video will start downloading. It will (always) be saved with the name “video.mp4” so you will have to rename it after the download finishes.

Have fun! Eric


Comment from Christophe
Posted: January 13, 2009 at 23:04

Works great!!!

Thank you.

Comment from Larr
Posted: February 27, 2009 at 00:14

Yes, this works great.


Comment from Jeff
Posted: October 27, 2009 at 10:54

I think youtube has fixed it and this one no longer works anymore…
Can you help again?

Comment from alienbob
Posted: October 27, 2009 at 18:49

Hm indeed, Google is blocking the javascript that used to work. It needs a lot more fiddling now, but luckily someone figured it out. I’ll update the main post with the new code.


Comment from Jeff
Posted: October 28, 2009 at 04:08

Thanks for noticing my comment!
I’ve tried the new one that you”ve posted, but it doesnt seem to work……

Comment from Jeff
Posted: October 28, 2009 at 04:10

I’m using IE8, does it bother?

Comment from Stinger
Posted: November 17, 2009 at 10:43

Does this work on IE 8.

Comment from excellentuk
Posted: May 22, 2010 at 09:02

nice tool.
but i am using Brorsoft YouTube Converter which can help me to free download youtube videos and also help me to convert youtube videos to other formats i need,eg convert to mp4 to put on my iphone.

Comment from alienbob
Posted: October 12, 2013 at 18:47

Note that this code no longer works.
In firefox I use this extension now: which is based on this cross-browser script:


Write a comment