There's an excellent plugin extension for Firefox that does the same thing. Install the extension, then surf to the youtube video page and right click on the downloader (link will appear in the bottom right of the browser after installation) to save the the video as a flv file to your hard drive.
Easiest way to download from youtube, Google video, Metacard, iFilm, Dailymotion, etc.
Firefox video download extension