zshot/cliDownload

--javascript

CLI
--javascript
ValueJAVASCRIPT

Runs this JavaScript in the page once the DOM is parsed, before the capture. Cannot be combined with --javascript-file.

Example

Run locally
zshot -f page.png \
  --javascript "document.body.style.background = 'white'" \
  https://zshot-cli.com/example_assets/hello_zshot/