Save Web pages in MHT using Firefox

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. :grin: We will forcibly make it compatible with Firefox 2.0. :twisted: Here are the easy steps:

  1. 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.
  2. Rename the downloaded file maf-0.6.3.xpi to maf-0.6.3.zip
  3. Open the zip file using Winzip or any zip utility.
  4. Extract install.rdf file
  5. Open install.rdf file and find this code:
  6. <!– 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>

  7. In this change

    <em:maxVersion>1.5</em:maxVersion>

    to

    <em:maxVersion>3.0</em:maxVersion>

  8. Save install.rdf and put the new install.rdf back in maf-0.6.3.zip replacing the old one.
  9. Rename maf-0.6.3.zip to maf-0.6.3.xpi
  10. 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.

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.

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.

50 Comments


    1. If you check the post above, I have mentioned about it already.


  1. IE Tab > Click > Save page as *.mht


    1. (apologies to setya5785, who’s earlier post I missed)


  2. Is there any other way to save it with the flash and other audio/video streaming associated with the pages?


  3. Mozilla Archive Format is now actively developed again; the latest version, compatible with Firefox 3, can be found at:

    http://maf.mozdev.org/


  4. This is a 5-minutes-later red-faced retraction to my unMHT-doesn’t-work letter.
    I was a victim of assumptionitus: save options normally appear in save dialog box but unMHT doesn’t: it appears as entry in mouse right-click menu!
    And, hallujeah, it works too [in my 3.04]!


  5. It does not install with Firefox 3… any updates soon?


  6. Well… thanks!


  7. 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…


  8. 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”)…


    1. 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.


  9. 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…


    1. @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.


  10. 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).


  11. 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


  12. Bravo! Works like a charm.


  13. 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!


  14. Thank you…
    Now I can save wikipedia pages with correct layout, no problem.


  15. :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.


  16. I like these plugins. Thank you for sharing.


  17. I think this is the greatest add-on to firefox ever created…. Thanks for making it version compatible :grin:


  18. awesome! thanks :smile:


  19. Thanks for MHT tips & UnMHT info, I will give it try…

    Handphone’s last blog post..UniDic


  20. 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


    1. This might work, if you studied it closely enough, and [preferably] have some programming background. For us browser monkeys tho it’s a joke.
      It doesn’t add an .mht entry in the file save dialog box.
      I don’t want to discourage the author because he’s obviously closer than anybody else [Mozilla seems indifferent!] but this is not ready for prime time…


  21. 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 :(


  22. 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.


  23. It installed successfully in Firefox 3.0b3, but none of the functions work.


  24. I tried and it had been successful.

    han’s last blog post..我為什麽不做幹事


  25. 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


  26. thanks for the info.. LOL, Nspeaks hacking yourself..yes, its much better. hehehehe


  27. i can’t install it on firefox 2.0.0.11
    >_<;;
    i want it badly!!


  28. :twisted:

    GAAAAAAAAH

    You posted the updated link at the end! Here I am opening up notebook to modify it.

    shew.

    :mrgreen:


  29. 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.)


  30. Does not install on v2.0.0.11. It says it will only work with FF 1.5.


  31. lovelltiong:
    May be MAF saves text in MHT in QuotedPrintable format?


  32. 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?


  33. I think MAF’s .mht is bigger because it’s not compressed. IE & Opera compresses the .mht file using Zip, IIRC.


  34. 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.


  35. Works with FF 2.0.0.9. Thanks! But the mht files are about a third larger than those saved under IE and Opera. :???: :?:


  36. Thanks for reminding. I am using that extension. But hacking yourself gives satisfaction! :twisted:


  37. 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!


  38. Yeah forgot to mention…you can use this trick to work on any unsupported extension provided code does work on latest firefox too. :cool:


  39. I am trying to make other old extensions to work too by same trick… :cool: Amazing trick.


  40. Wow..awesom

Comments are closed.