News for hackers. Stuff that matters.
Re:Creating a Safari webarchive from the command line by DaSHacka on Tuesday June 04, 2024 @01:05PM (#40576698)
> 'Save the webpage as I see it in my browser' remains a surprisingly annoying and fiddly problem

You may be interested in SingleFile[1]

[1] https://github.com/gildas-lormeau/SingleFile

I use it all the time to archive webpages, and I imagine it wouldn't be hard to throw together a script to use FireFox's headless mode in combination with SingleFile to selfhost a clone of the wayback machine.

Re:Creating a Safari webarchive from the command line by pvg on Tuesday June 04, 2024 @01:13PM (#40576781)
Thanks, I've seen it, last I tried it it missed bg images. But my point is this is something browsers should support better and kind of sort of do now but even with that it's a hassle.
Re:Creating a Safari webarchive from the command line by tedmiston on Tuesday June 04, 2024 @01:36PM (#40577008)
I tested this just now on the blog post that this HN page points to and SingleFile handled the background image fine.
Re:Creating a Safari webarchive from the command line by cxr on Tuesday June 04, 2024 @06:27PM (#40579606)
> FireFox's

It's just "Firefox".

Re:Creating a Safari webarchive from the command line by freedomben on Tuesday June 04, 2024 @08:37PM (#40580315)
This is what I was going to say as well. Somebody on HN told me about SingleFile and I use it all the time now! Really amazing extension.