News for hackers. Stuff that matters.
Re:SingleFile: A Web Extension to save a complete web page i... by mdaniel on Saturday December 21, 2024 @04:24PM (#42482441)
seems there was some robust discussion on the 2022 submission https://news.ycombinator.com/item?id=30527999 but I didn't dig into it to discover "but, why?" as compared to the "save" built into the browsers

having said that, this here is an instant "nope" for me https://github.com/gildas-lormeau/SingleFile/blob/master/faq...

> By default, SingleFile removes scripts because they can alter the rendering and there is no guarantee they will work offline.

so, not complete; got it

Re:SingleFile: A Web Extension to save a complete web page i... by gildas on Saturday December 21, 2024 @04:37PM (#42482540)
Re:SingleFile: A Web Extension to save a complete web page i... by freehorse on Saturday December 21, 2024 @04:28PM (#42482480)
The very next sentence says

> However, you can save them by unchecking the option "Network > blocked resources > scripts" [..]

Re:SingleFile: A Web Extension to save a complete web page i... by mdaniel on Saturday December 21, 2024 @04:31PM (#42482496)
Yeah, understood, there seems to be a bunch of "yes, well, monkey with this thing" options, but if the default behavior is not to preserve all the resources because of some pearl-clutching paranoia or whatever, then it's not a complete web page now is it?
Re:SingleFile: A Web Extension to save a complete web page i... by lynndotpy on Saturday December 21, 2024 @07:48PM (#42483573)
It's not paranoia, it's a feature that I consider to be useful and desirable. When I want to download the JavaScript, I use the built-in "save" feature. When I don't, I use SingleFile.
Re:SingleFile: A Web Extension to save a complete web page i... by varelaseb on Saturday December 21, 2024 @04:35PM (#42482529)
This is the worst gotcha I've ever seen
Re:SingleFile: A Web Extension to save a complete web page i... by wakawaka28 on Saturday December 21, 2024 @05:05PM (#42482725)
It depends what you want... Lots of JS will not work offline and I don't think a plugin can know what will work or not. If the page is dynamically populated from an API, saving the page to rely on JS later could be basically wrong.
Re:SingleFile: A Web Extension to save a complete web page i... by maxloh on Saturday December 21, 2024 @04:36PM (#42482534)
An alternative approach would be saving all outbound requests as a HAR file using your browser's DevTools. This captures fetched API responses as well. HAR is a JSON-based format, making it straightforward to inspect.

Unfortunately, there aren't any tools currently for opening a HAR archive directly as a webpage. Perhaps someone could develop one using Electron? (Hold your downvotes – we actually need a full browser environment to render HTML and execute JavaScript. Isn't it?)

Re:SingleFile: A Web Extension to save a complete web page i... by smittywerben on Sunday December 22, 2024 @03:28AM (#42485091)
Recording all of your SSL-decrypted network logs and reconstructing them later is one step further. I'm sure there's a chain of custody issue not much further.

But what I like about SingleFile is that printing the SingleFile page tends to print to PDF better than an actual dynamic page (annoying modals etc show up in the print that are not normally visible). I have a python service running that organizes my SingleFile html files into folders by each domain and stored my google drive.

It's like a confused mix of wget's -x directories and a postscript printer so you can avoid chrome's print to skia pdf pipeline until a brighter day.

Re:SingleFile: A Web Extension to save a complete web page i... by stuffoverflow on Sunday December 22, 2024 @01:43PM (#42488216)
I'm pretty sure I've used some tool in the past to convert a HAR in to WARC which can then be browsed with https://replayweb.page/