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

one hour ago

New features

  • New option --selected-elements-selector: save only the elements matching the given CSS selectors (comma separated), with their ancestors, like "Save selection" in the extension. The elements before them are hidden, the elements after them are removed, and --removed-elements-selector is applied afterwards. The whole page is saved when no element matches.

    single-file https://www.example.com/article page.html --selected-elements-selector "main article"
    

Fixes

  • Updated single-file-core to 1.11.0: when saving a selection, the elements before the selected content are hidden with visibility: hidden and an empty box instead of display: none, so the selected content keeps its place on pages laid out with CSS grids (gildas-lormeau/SingleFile#1932)

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

NewReleases is sending notifications on new releases.