5 ms·
Show HN: SingleFileZ – Save a web page in a HTML file which is also a zip file
- gildas 7y agoHere is an example of file produced by the extension: https://github.com/gildas-lormeau/SingleFileZ/blob/master/example/data%20URI%20scheme%20-%20Wikipedia.html https://github.com/gildas-lormeau/SingleFileZ/blob/master/ex...
- vxNsr 7y agoForgive me for asking but what is the purpose of this?
- gildas 7y agoBecause I can (it's HN, isn't it?). Maybe also to offer a technical solution for browsers that don't support MHTML.
- helb 7y agoMHTML is around for ~20 years (since IE 5.0) – https://en.wikipedia.org/wiki/MHTML https://en.wikipedia.org/wiki/MHTML
- gildas 7y agoCan you open your MHTML page in any browser (supporting JS)? Firefox or Safari, for example, don't support MHTML. Moreover, MHTML is more and more becoming a proprietary format (cf. for example the serialization of shadow root contents).
- mikaelmorvan 7y agoBrilliant ! What a great idea, even if I don't know what to do whith that :D
- gildas 7y agoYou could archive pages! ;)
- SanchoPanda 7y agoThis is clever, many of the benefits of epubs - organization,convenient sharing, filesize - without the conversion step. The mobile compatiblity and well thought out defaults are appreciated as well. Thanks for sharing.
- severine 7y agoI love it. Any chance of further integration with browser bookmarks? That would be even lovelier.
- gildas 7y agoThanks! That's an interesting suggestion. Could you give me more details?
- severine 7y agoWhen I save a page with SingleFileZ, I can open it again from my downloads folder, or from the browser's downloads list. I'd like to, somehow, be able to choose between the archived version and the real link when opening a bookmarked/previously saved page. Another thing: Currently I'm unable to save pages when in Reader View mode, is there any workaround to this? Congratulations, great job!
- gildas 7y agoThanks for the details and the kind words. I need to see how the bookmarks API works. I've never played with it until now. Unfortunately, extensions can't run in the Reader View mode. I don't know any workaround to this. However, it could be possible via Selenium/Geckodriver (SingleFile can run via the command line interface) but I did not do the test.
- severine 7y agoThanks for answering! Maybe it's a silly thought or beyond the scope of SingleFileZ, but could you implement the reader view on your side, like some "save in reader view" option where it would save the whole page, then trim it reader view style? One of my use cases are cooking recipes, which usually come from bloated sites and weigh in the Mbs, but are only a few Kb on reader mode.
- gildas 7y ago