--emulate-disable-usb
- CLI
- --emulate-disable-usb
Removes navigator.usb from the page and its workers, so the WebUSB API appears absent.
Example
zshot -f page.png \
--emulate-disable-usb \
https://zshot-cli.com/example_assets/hello_zshot/{
"url": "https://zshot-cli.com/example_assets/hello_zshot/",
"output_type": "png",
"emulate_disable_usb": true
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/hello_zshot/","output_type":"png","emulate_disable_usb":true}' \
-o page.png