3 ms·
seems there was some robust discussion on the 2022 submission https://news.ycombinator.com/item?id=30527999 https://news.ycombinator.com/item?id=30527999 but I
by mdaniel 2y ago
seems there was some robust discussion on the 2022 submission https://news.ycombinator.com/item?id=30527999 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.md#why-dont-interactive-elements-like-folding-titles-dynamic-maps-or-carousels-work-properly-in-saved-pages 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
- freehorse 2y agoThe very next sentence says > However, you can save them by unchecking the option "Network > blocked resources > scripts" [..]
- mdaniel 2y agoYeah, 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?
- varelaseb 2y agoThis is the worst gotcha I've ever seen
- wakawaka28 2y agoIt 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.
- lynndotpy 2y agoIt'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.
- maxloh 2y agoAn 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?)
- smittywerben 2y agoRecording 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.
- stuffoverflow 2y agoI'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/ https://replayweb.page/
- gildas 2y agoSee https://github.com/gildas-lormeau/SingleFile/blob/master/faq.md#i-am-a-web-archivist-is-it-ok-to-use-singlefile-to-archive-content https://github.com/gildas-lormeau/SingleFile/blob/master/faq...