Skip to content
Siarhei Kuzeyeu edited this page Mar 31, 2019 · 15 revisions

View Archive Files

Every HTZ or MAFF archive file saved by WebScrapBook is essentially a ZIP-compressed file, and therefore you can always view the web page(s) by extracting them using a ZIP software and viewing the containing files.

The entry page of a HTZ file is always index.html. MAFF file will have each page inside a subfolder, and the entry is commonly index.html, but may also be otherwise specified by index.rdf and requires a further lookup.

Using the archive page viewer

WebScrapBook has a built-in archive page viewer, which can be entered via the dropdown commands of the toolbar button to enter it. After entering, drop one or more archive files to the tab and they will be opened. You can also use the "Pick ZIP files" button to select archive files as well.

Open directly with the browser

Open HTZ or MAFF directly with the browser is supported on several platforms.

Firefox:

Windows:

  1. Right-click to download a desired command file from below links:
  2. You can optionally install 7-Zip for better support of MAFF.
    • This script opens internal pages which starts with index.html if 7-Zip is installed; and opens only the main internal directory if not installed.
    • This script will search 7-Zip installation at default path. If it's not installed there, its main directory must be added to PATH environment variable to work correctly.
  3. Right-click on a HTZ or MAFF file, and select the downloaded command file as the default program.

Linux Desktop:

  1. Right-click to download the script and launcher files from links below:
  2. Move the script file to ~/.local/bin/ or /usr/local/bin/, and add executable permission.
  3. Move the launcher file to ~/.local/share/applications/ or /usr/share/applications/, and add executable permission.
  4. Set the launcher of HTZ or MAFF file to "Firefox HTZ" or "Firefox MAFF". To do that you can use "Open File With" context menu item of your Desktop Environment (KDE, XFCE, GNOME, MATE etc). Just choose a launcher as a program that you want to use to open a file.
  • NOTE: For MAFF, currently this only supports opening internal pages which starts with index.html. On some operation systems (Ubuntu, Debian etc) you may need to reboot to let the operation system find a script and a launcher to use them through the "Open File With" context menu or the terminal.

You can perform steps 1-3 by one command

# For maff file type:
sudo wget https://github.com/danny0838/webscrapbook/wiki/View/files/firefox-maff.sh -O /usr/local/bin/firefox-maff.sh && sudo chmod a+rx /usr/local/bin/firefox-maff.sh && sudo wget https://github.com/danny0838/webscrapbook/wiki/View/files/firefox-maff.desktop -O /usr/share/applications/firefox-maff.desktop && sudo chmod a+rx /usr/share/applications/firefox-maff.desktop
# For htz file type:
sudo wget https://github.com/danny0838/webscrapbook/wiki/View/files/firefox-htz.sh -O /usr/local/bin/firefox-htz.sh && sudo chmod a+rx /usr/local/bin/firefox-htz.sh && sudo wget https://github.com/danny0838/webscrapbook/wiki/View/files/firefox-htz.desktop -O /usr/share/applications/firefox-htz.desktop && sudo chmod a+rx /usr/share/applications/firefox-htz.desktop

After that you should reboot your system. After rebooting you can configure your Firefox to open .maff (or *.htz). There are two way to configure file associations in Linux systems. You can configure MIME type (e.g. application/zip) or you can configure file type extension (e.g. *.zip). To open .maff (or *.htz) files in Firefox you need to configure file type extension and connect *.maff (or *.htz) pattern with the launcher (firefox-maff.desktop for maff and firefox-htz.desktop for htz). You can do that in System Setting of your Linux system.

e.g. For KDE 5 (kubuntu) you can type kcmshell5 filetypes to open System Settings/File Associations directly. After that you can peek application item of file type list and create the connection between *.maff (or *.htz) and firefox-maff.desktop (or firefox-htz.desktop).

Mac:

Pending.

Android:

Pending.

Google Chrome:

  1. Go to the Extensions page. Find WebScrapBook, and check "Allow access to file URLs".
  2. Right-click on a HTZ or MAFF file, and select Google Chrome as the default program.
Clone this wiki locally