Re:Show HN: SingleFileZ – Save a web page in a HTML file whi...
by gildas on Monday May 20, 2019 @03:22PM
(#19964019)
Thanks 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.
Re:Show HN: SingleFileZ – Save a web page in a HTML file whi...
by severine on Tuesday May 21, 2019 @03:12AM
(#19968136)
Thanks 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.
Re:Show HN: SingleFileZ – Save a web page in a HTML file whi...
by gildas on Tuesday May 21, 2019 @08:23AM
(#19969457)
You're welcome. I'm glad people are interested in my projects too ;)
Implementing a Reader view is hard, I guess. It looks like it's almost impossible to write a program to be able to do it in a generic way for all existing websites. If one day I find a trick to do so, I'll implement it.
By the way, did you try the "Save selection" feature (cf. the contextual menu)? It allows you to save only the selected part of the webpage. With Firefox, you can even select multiple parts of the page by holding the Ctrl key while selecting contents.
Re:Show HN: SingleFileZ – Save a web page in a HTML file whi...
by gildas on Wednesday May 22, 2019 @08:14AM
(#19980295)
Thank you very much! I'm the author of both projects (and zip.js too actually) ;). By the way, if you can, do not hesitate to leave a review on the Mozilla Add-Ons Store.
Re:Show HN: SingleFileZ – Save a web page in a HTML file whi...
by gildas on Friday May 17, 2019 @08:59AM
(#19939085)
Can 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).
The mobile compatiblity and well thought out defaults are appreciated as well. Thanks for sharing.
Any chance of further integration with browser bookmarks? That would be even lovelier.
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!
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.
Implementing a Reader view is hard, I guess. It looks like it's almost impossible to write a program to be able to do it in a generic way for all existing websites. If one day I find a trick to do so, I'll implement it.
By the way, did you try the "Save selection" feature (cf. the contextual menu)? It allows you to save only the selected part of the webpage. With Firefox, you can even select multiple parts of the page by holding the Ctrl key while selecting contents.
Wow, I didn't... duh! Works great, very very nice!
I don't know if that's your work or if it comes from the forked project, but anyway, congrats and thanks for such a useful addon, keep it up!