Show HN: SingleFile is finally available on Safari (macOS/iOS)
apps.apple.com
apps.apple.com
Feel the power of the Manifest v3 - https://news.ycombinator.com/item?id=33063619 - Oct 2022 (273 comments)
SingleFile: Save a complete web page into a single HTML file - https://news.ycombinator.com/item?id=30527999 - March 2022 (240 comments)
Show HN: SingleFile Lite, new version of SingleFile compatible with Manifest V3 - https://news.ycombinator.com/item?id=29331038 - Nov 2021 (2 comments)
With a small bit of JS at the top of the page (or provided by the browser), all the assets could be included are the bottom of the page in an organized JSON blob containing the base64 encoded files, and the rest of the page could remain untouched. The JS simply intercepts the elements as they are parsed and swaps out the src/hrefs for the appropriate data urls below. By adding in a super restrictive CSP to the top of the page, it's guaranteed to be safe and private to open. Here's a prototype:
Once saved, it supports highlighting, full text search, and creating RSS feeds.
In addition to html, it also supports importing mthml, webarchive.
Thanks to singilefile, I don't need to develop a separate browser plugin.
Document: https://hamsterbase.com/docs/integrations/singlefile.html
Edit: I forgot to say that it's thanks to donations (a big thank you to Zotero) that I could have bought a Mac and paid the development license
Edit: I just did a test with https://www.theguardian.com/world/2022/nov/17/three-men-foun.... The CSS of the resulting webarchive is very broken and the file weights 4 times more than the one saved with SingleFile.
https://www.russellbeattie.com/notes/posts/the-decades-long-...
So, I really think some telemetry is needed to make reliable software. It should be anonymous, of course, and limited to things you need to know (eg. crashes or assertion failures) and not include things that don't help the customer (eg. usage statistics for market research are not ok in my opinion).
But if you collect no data at all, you'll never know of your customers issues.
In any case, I received only a handful of crash reports from Apple. I thought everything was okay, except that customers occasionally reported an issue, but I never got a crash report from Apple that could explain the situation. Until I built my own reporting solution, which just sends a stack trace to my server in a signal handler. I started receiving dozens of crash reports per week.
So while on the one hand I applaud Apple for trying to do the right thing, as a developer I can only say that the crash reports they share with developers are so few they are close to useless.
From a privacy perspective it sounds like it logs exactly the same info that I currently log with PLCrashReporter, except that it only works on macOS 12.
A PDF doesn’t capture scrolling behavior, so a nested scrolling element will lose most of its content, and a page with a chat prompt or cookie notice might have part of its content covered.
A PDF won’t capture even simple interactive elements like image carousels, lightboxes, and collapsible sections, so content may be lost (“oops, I saved it on the second slide of the image carousel, but I really wanted the first one”).
As far as I know, a PDF won’t include embedded audio/video.
Many PDF exporters chunk the document into paper-sized pages (but, to be fair, some don’t).
Not sure if this tool nails all of those cases, but those are reasons why I’ve saved local copies of pages in the past.
Could it be made possible to save images externally instead of base64? I need a quick way to replace images. It contradicts the name but scrolling & missing in my editor sucks. Unless someone knows the pro tools.
Could this be an entirely client side API?
For a bookmarking project I'm working on, I'd like to be able to click a button "capture screen" and have the entire rendered single page sent to an s3 bucket.