github gildas-lormeau/single-file-cli v2.24.0

6 hours ago

SingleFile CLI 2.24.0

New features

  • New option --load-deferred-content-keep-emulated-screen-size: while loading deferred content, the page is made to believe the screen is as tall as the whole document, and the real size is restored before the page is read. With this option the emulated size is kept until the page has been saved. It helps saving pages that only keep on screen the content scrolled to, e.g. the timelines of x.com, at the cost of saving elements sized from the screen height, e.g. full-screen covers, at the emulated size (gildas-lormeau/SingleFile#2048 by @cheese529).

    single-file https://x.com/i/history/likes likes.html --browser-server http://127.0.0.1:9222 --load-deferred-content-keep-emulated-screen-size=true
    

CLI fixes and improvements

  • The default value of --accept-header-image starts with image/jxl, like the Accept header of browsers supporting JPEG XL
  • Updated single-file-core to 1.10.0: SVG sprite fragments referenced from CSS url() values and from image attributes are saved on their own instead of the whole sprite, the sandbox attribute of saved frames no longer carries a token Safari rejects nor a duplicated one, and the xmlns attribute of extracted sprite fragments is declared in the XMLNS namespace

Co-authored by Claude (Claude Code)

Don't miss a new single-file-cli release

NewReleases is sending notifications on new releases.