News for hackers. Stuff that matters.
Re:Show HN: SingleFileZ – Save a web page in a HTML file whi... by severine on Sunday May 19, 2019 @05:51PM (#19955747)
I love it.

Any chance of further integration with browser bookmarks? That would be even lovelier.

Re:Show HN: SingleFileZ – Save a web page in a HTML file whi... by gildas on Monday May 20, 2019 @08:10AM (#19959555)
Thanks! That's an interesting suggestion. Could you give me more details?
Re:Show HN: SingleFileZ – Save a web page in a HTML file whi... by severine on Monday May 20, 2019 @09:51AM (#19960301)
When 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!

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 severine on Tuesday May 21, 2019 @11:05AM (#19970788)
> By the way, did you try the "Save selection" feature

Wow, I didn't... duh! Works great, very very nice!

Re:Show HN: SingleFileZ – Save a web page in a HTML file whi... by gildas on Tuesday May 21, 2019 @11:52AM (#19971328)
:)
Re:Show HN: SingleFileZ – Save a web page in a HTML file whi... by severine on Wednesday May 22, 2019 @02:55AM (#19978516)
Just a last note to state that I'm delighted with the detailed and thorough preferences.

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!

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.