I use Niconico downloader addon for firefox, it's not 100% reliable, it has trouble with .swf files, and some videos it just refuses which drives me up the wall. Other than that it works fine.
https://addons.mozilla.org/en-US/firefox/addon/niconico-downloader/?src=search