cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
endolith
Strollin' around
Status: New idea

Mozilla Archive Format is a file type for saving complete web pages, with all related resources saved in a single zip file.  https://en.wikipedia.org/wiki/Mozilla_Archive_Format

  • It is superior to the current "Web page, complete" because it is a single file and can be moved and renamed without problems, and has no filesystem overhead.
  • It is superior to PDF because it doesn't divide up the web page into arbitrary page boundaries, add headers and footers, distort the layout, etc.  It can be viewed on any screen in the original intended format.
  • It is superior to MHT format because it keeps the original context of the web page as closely as possible and doesn't re-encode all the files into BASE64. They can be extracted from the archive with their original filenames and metadata, etc. or deleted from it to save space if they are inconsequential.  MAFF is a simpler, more future-proof format.

Firefox should natively save and open .maff files without a need for add-ons.  It's very frustrating that this format was created by Mozilla, we saved many web pages using it, and then Mozilla abandoned the format and removed the functionality from Firefox and made it impossible to provide through add-ons.

21 Comments
renfrow
New member

I, also, deeply miss MAFF! Put my $10 in with the rest :).

Here's a script for double clicking on MAFF files and opening them in your 'default' web browser, on Windows. Save it into a .bat file, then right click on the MAFF and select "Open With" and select the bat file to always open it. I have a task the runs every night to empty the directory where I copy the MAFF file, you can change the location to where-ever you want...

 

@echo off

REM The 'for' and the 'set' I'll admit are magic. I got this off the web from:
REM https://stackoverflow.com/questions/203090/how-do-i-get-current-date-time-on-the-windows-command-line-in-a-suitable-format
REM and modified it to make a file system friendly directory name.
REM More or less it makes a string comprised of the date, 24 hour time, seconds,
REM and milliseconds.

for /F "usebackq tokens=1,2 delims==" %%i in (`wmic os get LocalDateTime /VALUE 2^>NUL`) do if '.%%i.'=='.LocalDateTime.' set ldt=%%j
set ldt=%ldt:~0,4%-%ldt:~4,2%-%ldt:~6,2%_%ldt:~8,2%-%ldt:~10,2%-%ldt:~12,6%

set MAFF_TempDir="C:\ReallyTempEmptyEveryDay\MAFF-%ldt%"
mkdir "%MAFF_TempDir%"

set tZipFile=%MAFF_TempDir%\maff_file.zip

REM quietly copy .maff file from source to temp directory as .zip file
  copy /Y %1 %tZipFile% > nul

REM quietly unzip copied file
  setlocal
  cd /d "%MAFF_TempDir%"
  7z x maff_file.zip > nul

REM find newest created subdirectory
REM sort acording to the following, and drop out of loop after the first (newest) directory
REM /b - tell dir not to add normal header/footer
REM /ad-h - display only directories even if they are hidden
REM /t:c - sort using the creation date
REM /o-d - sort newest first
  FOR /F "delims=" %%i IN ('dir /b /ad-h /t:c /o-d') DO (
  SET a=%%i
  GOTO EndOfLoop )
:EndOfLoop

REM change to latest subdirectory
  cd "%a%"

REM run html file   
  start index.html

REM quietly delete copied zip file
  del "%tZipFile%" > nul

  exit

 

ffffff
Familiar face

As much as I like a lot of Mozilla's past ideas, I feel like a serious take on MAFF would require significant work to bring it up to par with modern security standards, not to mention the dubious rationale of investing time and resources into a format no one else uses (how's that webarchive looking, Tim?).

Folks in this thread might want to take a look at SingleFile.

https://addons.mozilla.org/en-US/firefox/addon/single-file/
https://github.com/gildas-lormeau/SingleFile

No (current) solution is perfect, but SF currently works well enough, it seems.

endolith
Strollin' around

What "work" would it require?  It's the same format as "Web Page, complete", except combined into a single .zip file.

ffffff
Familiar face

I meant not just work to add back it as a saving option, but also the cost of future ongoing work to keep it functional and/or safe. I also worry a bit that modern user expectations and needs would clash with its relatively simple nature, but maybe I'm overestimating how many non-tech savvy users even download pages nowadays.

Regardless, pulling a zip file into the browser seems like an attack surface, a risk undertaken to benefit a nebulous—but likely small—number of people. Someone would need to take care of it, even if they only did so rarely. Maybe they could invest their time into something newer?

Don't take me too seriously, though. I just spent some time on this topic and thought folks might be interested in the extension. I don't have the required knowledge and expertise to judge if MAFF should return or not.

Menu82
New member

Hi to all, I know a lot of time has passed since the last message on this board, but as a fellow and enthusiast MAFF user, I never gave up. Long story short, since I'm not a programmer, more a geek, with a big help by an AI Assistant I got a working prototype based on SingleFile by Gildas, my prototype (not yet released)  brings back the support for *.maff and *.mht on Firefox >57, with some additional features I always missed in the original extension. 

Menu82
New member

Hi to all, I posted a similar message before, but maybe it's still in review, in case it will be published here I mention the original authors.

Hi to all, I know it's a long time since the last message was written on this board, but as a fellow MAFF user and enthusiast Firefox user, I never gave up and recently, given that I'm not a coder, leveraging the power of an AI assistant, I got a working prototype (not yet released) based on SingleFile by Gildas, which brings back support for Firefox, targeting Firefox >138, with some additional features I always desiderated the good old MAFF didn't have. All credits go the respective authors, like first of all Christopher Ottley and Paolo Amadini and all the people who wrote code used by the extensions I mentioned.