In the README for monolith (a new Rust CLI tool for archiving HTML pages along with their images and assets) I spotted this tip for using Chrome in headless mode to execute JavaScript and output the resulting DOM: chromium --headless --incognito --dump-dom https://github.com \ | monolith - -I -b https://github.com -o github.html I didn't know about that --headless option, so I had a poke around to