SingleFile CLI 2.12.0
CLI fixes and improvements
--insert-canonical-linkturns the canonical link off. The element is still inserted by default, so nothing changes unless you ask for it. The option existed in the core library but was forced on after the options were merged, so passing it did nothing at all--read-maff-metadatasaves the original URL and the archive time of a page that was extracted from a MAFF archive, read from theindex.rdffile stored next to it. Without it the page is saved under the path of the extracted copy, dated today. It is off by default because it asks for anindex.rdfbeside every page saved, which is a request that fails on the open web
Fixes from single-file-core 1.5.130
- Saved pages can no longer submit forms or set a base URI. Both were available to a saved page and neither has any use once the page is on disk
javascript:URIs are removed from every attribute, in every namespace. The previous pass read the resolved property, so it missed thehrefof an SVG link and never sawxlink:href- Reading the metadata of a page extracted from a MAFF archive no longer fails the capture when
index.rdfdeclares an original URL with noRDF:resourceattribute - The filename template data of a page extracted from a MAFF archive records the URL recovered from the archive, not the path of the extracted copy
Changes
- zip.js is updated to 2.15.0
Co-authored by Claude (Claude Code)