Repository navigation
SingleFile CLI 2.28.0
New features
-
New option
--add-proof: write a proof of existence next to the saved page, as<page filename>.ots. It is an OpenTimestamps proof: with it, anyone can check later that the saved file existed at the time of the capture, with the Bitcoin blockchain as the only reference. Only a hash of the saved file is sent to the public OpenTimestamps servers, the page itself is not sent. The proof must be upgraded a few hours later to be complete, see Proof of existence in the README. The option--proof-calendar-urlsets the servers to use in place of the default ones (#214 by @johanjohan).single-file https://www.wikipedia.org wikipedia.html --add-proof -
New option
--link-blocked-images: with--block-images, the blocked images keep the address they were loaded from instead of being emptied. The saved page is much smaller and displays its images from the original site, so it is not self-contained and it contacts that site when it is opened (gildas-lormeau/SingleFile#418, gildas-lormeau/SingleFile#1217, gildas-lormeau/SingleFile#1722).single-file https://www.example.com page.html --block-images --link-blocked-images -
On macOS and Windows, a Chromium-based browser is now launched with its sandbox, which confines the processes that render the pages. If the browser exits at startup, it is launched again with
--no-sandboxand a warning is displayed. On Linux, the browser is still launched with--no-sandbox. See Browser sandbox in the README. -
A Chromium-based browser launched by the tool no longer sends requests of its own to Google during a capture. Google Chrome sent five of them that the captured page never made (network time, Safe Browsing key, "AI Mode" eligibility, preconnection to the search engine, list of the signed-in accounts). The last one is still sent when
--browser-profileis used with a profile signed in to Google. This was measured with Google Chrome on macOS only.
CLI fixes and improvements
- With
--crawl-replace-urlsand without--compress-content, the manifest written by--manifestnext to each page now describes the file as it is left on disk. Its size and hash were the ones of the page before its links were rewritten. - Updated single-file-core to 1.16.0:
- when a page saved with SingleFile is saved again, only the data of its file name is read from the options stored in the page, and the format of the file is the one of the current save (gildas-lormeau/SingleFile#2062)
- animated PNG and animated WebP images are left as they are when
--image-reduction-factoris used, they were saved as their first frame - a page is saved when one of its stylesheets, or one of its
styleattributes, is too large for the CSS parser (more than 134,217,727 characters), and the stylesheet or the attribute is left out. The page was not saved at all - the URL read from the comment of a saved page does not end with a space anymore (gildas-lormeau/SingleFile#2062)
Co-authored by Claude (Claude Code)