Recently somebody asked me how to save web pages in MHT Format using Firefox. For those who don’t know MHT is a compressed format to save webpages into a single file and all images/css/text related to webpage is embedded into a single page(.mht). Firefox does not have support for MHT format maybe because MHT is a Microsoft created format.
But that does not mean Firefox users can’t use it. There was a extension for Firefox earlier known as Mozilla Archive Format. It was working good until Firefox 1.5. But then developer stopped working on it and it does not work on Firefox 2.0.
No Way! There has to be a way out. Why would otherwise I waste a long post telling you about it? Well there is a way out.
We will forcibly make it compatible with Firefox 2.0. :twisted: Here are the easy steps:
- Download the extension from here. Download but don’t install. To override Firefox default installer either paste the link in your download manager or open this link in any browser other than Firefox. Since it won’t install on FF saying compatibility problems.
- Rename the downloaded file maf-0.6.3.xpi to maf-0.6.3.zip
- Open the zip file using Winzip or any zip utility.
- Extract install.rdf file
- Open install.rdf file and find this code:
- In this change
<em:maxVersion>1.5</em:maxVersion>
to
<em:maxVersion>3.0</em:maxVersion>
- Save install.rdf and put the new install.rdf back in maf-0.6.3.zip replacing the old one.
- Rename maf-0.6.3.zip to maf-0.6.3.xpi
- And now open the xpi file with firefox if xpi is not set to open with Firefox. Install the extension and it will work for you.
<!– Firefox –>
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>1.5</em:minVersion>
<em:maxVersion>1.5</em:maxVersion>
</Description>
</em:targetApplication>
That’s all. It will work now with your latest Firefox 2.0.0.7 Not Tested on 3.0 alpha release. If anyone can test with 3.0 alpha and post here, I will update the status here.
Wanna Find a easier method?
Download modified version of MAF from me.
UPDATE: I should have updated this post long before. Firefox has now a extension to save pages as MHT - UnMHT. Get it from http://www.unmht.org/
I have tested it on Firefox 3 Final Version. It works really.








Wow..awesom
I am trying to make other old extensions to work too by same trick…
Amazing trick.
Yeah forgot to mention…you can use this trick to work on any unsupported extension provided code does work on latest firefox too.
Use “Mr.Tech Local Install” extension. One of the many great things it does is allow you to ignore maxversion number.Then you don’t have to mess with it! :mrgreen:
https://addons.mozilla.org/en-US/firefox/addon/421
Thanks for the heads up on the MHT extension! Glad I’m not the only one that uses MHT!
Thanks for reminding. I am using that extension. But hacking yourself gives satisfaction! :twisted:
Works with FF 2.0.0.9. Thanks! But the mht files are about a third larger than those saved under IE and Opera. :???: :?:
Are you saying that mht created in firefox is larger than html files created from IE and Opera? MHT files will always be larger since they have all images, stylesheet, javascripts code embedded in a single file, whereas html files have just the text and images and rest of things are in a folder.
Not html files, but same old mht files. I compared mht files saved via FF, IE and Opera from the same webpages, and the FF files are always larger than the latter two. Saving this discussion webpage for example http://nspeaks.com/106/save-we.....omment-934, gives me mht files of 787k, 355k, 390k, from FF, IE, Opera, respectively.
I think MAF’s .mht is bigger because it’s not compressed. IE & Opera compresses the .mht file using Zip, IIRC.
Doesn’t really seem to work with FF 3.0b1 (poratbleapps version). Installs OK. But maintains a stoic silence when I try to save pages in mht format or try to access the extension options in Tools menu. Anybody else?
lovelltiong:
May be MAF saves text in MHT in QuotedPrintable format?
Does not install on v2.0.0.11. It says it will only work with FF 1.5.
Thanks NSPEAKS, you rock.
(To vaypay,
you should change the xxxxx under “firefox”, not “mozilla”.
I did the same mistake, yet I solved this myself. I suggest you to think thru it next time, before you ask others for help.)
:twisted:
GAAAAAAAAH
You posted the updated link at the end! Here I am opening up notebook to modify it.
shew.
:mrgreen:
i can’t install it @_@ what happen?!
i can’t install it on firefox 2.0.0.11
>_<;;
i want it badly!!
thanks for the info.. LOL, Nspeaks hacking yourself..yes, its much better. hehehehe
This seems to work in the 3.0 series Firefox beta:
http://www.unmht.org/en_index.html
i’ve tried the extension, but the mht result seem loss some css
btw, why not just use ie tab, if you change webpage rendering using ie tab, then you can save into mht (well basically ie tab wrap ie on firefox tab)
setya5785’s last blog post..Tales of Innocence Walkthrough
I tried and it had been successful.
han’s last blog post..我為什麽不做幹事
It installed successfully in Firefox 3.0b3, but none of the functions work.
i installed it successfully in firefox 3.0 b4, but when i try to save page in any kind of MAF format (ZIP, MHT) - nothing creates, no files, nothing at all appears.
Is there any good reason why firefox can’t save a page in a single file?
I know IE can do it, and some people keep using IE to do just this
This may help all of you out a LOT more than what the author’s trick does (no offense, I’m glad I came across this post) so..
UnMHT, a firefox save/view MHT extension… the development continues…
http://www.unmht.org/en_index.html
Thanks for MHT tips & UnMHT info, I will give it try…
Handphone’s last blog post..UniDic
awesome! thanks
I think this is the greatest add-on to firefox ever created…. Thanks for making it version compatible
I like these plugins. Thank you for sharing.
:razz:
Thanks very much for this trick!
I like archive format and because Mozilla didn’t support it, I usually use MS IE, but I can use FIREFOX now because there is all I want in it.
Thank you…
Now I can save wikipedia pages with correct layout, no problem.
Thank you Chris so much for the UNMHT recommendation, I’ve been screwed without MAF working on FF3, you have made FF3 usable for me, so I can now fully switch over. Thank you!
Bravo! Works like a charm.
It doesn’t work for me on Firefox 3
just doesn’t save it even when we specfify the format to be saved as… helppppppppp
@Purushotham: UnMht released a Firefox 3.0 Compatible version recently. Use that.
http://www.unmht.org/
Sorry, but though the installation worked fine, my version of FFox (3.0, French locale) ISN’T actually ABLE to produce any archive-file (nothing happens).
Besides, “UnMHT” only works for me in order to open .mht-archives in FFox. The option “save as… mht” simply doesn’t appear in the list box (I checked everything in the add-on’s option dialog-box and everything seemed ok).
I guess I’ll better use Opera instead…
NSpeaks (164 comments) reply on June 22nd, 2008 5:14 pm:
@laurent: Strange … it works for me…I am using UnMHT 4.5 and Firefox 3 Final Version. Reinstall the latest version from http://www.unmht.org/ and then retry.
G’day!
— UnMHT 4.5 re-installed since yesterday.
— Also uninstalled some FFox 3 beta that lurked on my HD (potential conflict?).
— Current FFox version: 3.0 french final v.
Parameters in the UnMHT dialog-box:
— UnMHT activated.
— Add “save as MHT” in context menu checked.
— made up some shortcut in order to save as MHT.
–› only the shortcut-gimmick works : it calls a dialog-box “save as MHT”, declined in two variants (which subtlety I don’t fully get — BTW, there seems to be an misencoding in the french version as I get sort of html-entity in the name of the second type/variant).
I still get no mention of MHT or whatsoever in the “regular” list-box (”Save page as”)…
NSpeaks (164 comments) reply on June 22nd, 2008 7:12 pm:
It won’t show in regular save page as dialog box nor it has been designed to do so. It will either show in File menu as Save as MHT or in right click context menu.
You can even add the button on toolbar by right clicking Customise in toolbar area and dragging the Save as MHT toolbar button to the toolbar.
False alarm!!!
“save as MHT” DOES indeed appear, but only as a specific, alone-standing option in the pull-down menu (file › save as MHT)!!!
I didn’t see it, ’cos I’m used to the Ctl+S shortcut, as I basically select the whished format directly from the regular save-dialog-box (which I hope isn’t sooo far-fetched: your initial tweak seemed to function this way too…)! Maybe the guys at UnMHT should write sthg about that…
Well… thanks!
It does not install with Firefox 3… any updates soon?