SingleFile CLI 2.27.1
CLI fixes and improvements
--embed-screenshotand--embed-pdfembed the screenshot and the PDF again. Since 2.18.1, the file was saved without them, and without any warning, unless a settings file definedremoveAlternativeImages(#212 by @johanjohan).--remove-alternative-imagesgiven on the command line is no longer ignored when a settings file defines the same option.- With Chromium,
--browser-widthand--browser-heightnow set the size of the viewport, as they already did with Firefox. They used to set the size of the window, and the browser kept 87 px of its height for itself: a page was laid out in 1280x633 by default, it is now laid out in 1280x720.--browser-device-widthand--browser-device-heightstill take precedence. - When the page crashes in Chromium during the capture (e.g. when it runs out of memory), the error is now "Page crashed" and it is reported at once. It used to be reported as a capture timeout, after the whole delay.
- With Firefox, a page that navigates to another URL from a script before its load event is now captured. The capture failed with a navigation error.
- A capture now checks that the browser it connects to is the one it launched. When several captures were started at the same time with Chromium, two of them could be given the same debugging port, and one of them failed.
- Updated single-file-core to 1.14.3:
- an imported stylesheet that is truncated or leaves a block, a string or a comment open no longer swallows the rules that follow it in the page
- the adopted stylesheets of a shadow root are now saved after its own
<style>elements, which is their place in the cascade
Co-authored by Claude (Claude Code)