by mcdonje · 2y ago · 0 comments
Right now you can download a webpage on most web browsers. It saves the html file and an associated folder. It would be cool if the web browsers placed that file and associated folder into a zip folder with a special file extension, and then the browser could read it on a double click as if you opened the html file.
Yes, I know it's limited. But dead simple. The format could evolve and get more bells and whistles over time.
Others mentioned epub. I do wish more sites offered epub downloads alongside or instead of pdf. Maybe browsers can do this, and maybe it'd be better than the simpler solution I suggested, but there are pros and cons to weigh here.
This browser addon does that for example: https://addons.mozilla.org/en-US/firefox/addon/single-file/
The only downside I can see to what you propose is the file size overhead of base64 encoding the assets.
[1] https://gildas-lormeau.github.io/singlefile-updates/version-....
Fantastic extension by the way, thank you very much for your work.
I always like to mention that that Chromium currently allows saving to MTHML (a self-contained single HTML file, with attachments/images). In Vivaldi (Chromium based) the appropriate launch argument (`--save-page-as-mhtml`) is enabled by default.
Firefox used to support MHTML as well until 2017 via an addon. Now days on FF an alternative called SingleFile saves to a literally renamed zip, for a similar purpose.
It's also guaranteed to never go away because it uses the exact same way emails are encoded.