Hacker News new | ask | show | jobs
by max_ 983 days ago
It still blows my mind that browsers don't provide features this out of the box.
4 comments

The MHTML format [1] has been around for 25 years and was natively supported by multiple browsers for decades. Modern browsers have regressed in functionality.

[1]: https://en.wikipedia.org/wiki/MHTML

Chrome does support it:

https://i.imgur.com/HF7GXEI.png

I think they do? Have you tried hitting cmd+s or ctrl+s? You can save webpages like that.

But I don’t know if they can compress everything into a single html file though.

Last time I tried that it saved a static version of the current DOM, instead of the page source. I'm assuming that the reasoning behind that is that most people want to save a snapshot of what they are currently seeing, and that this is the easiest way to have somewhat reliable results for that.
Alot of the CSS & JavaScript is usually broken with ctrl+s.

A great option used to be the mhtml format chrome. (It had to be enabled in chrome flags)

But mhtml seemed to be removed from chrome since recently.

So true. Monolith is using libraries made by Mozilla for their Rust-driven browser engine (which I believe, never happened to be). I really would love for it to be a part of some browser one day, the demand is clearly there. Nobody likes to have a file+folder abomination on their drive, or some shady formats like .webarchive