mattsse / chromiumoxide

Chrome Devtools Protocol rust API
Apache License 2.0
755 stars 78 forks source link

Running an init script #205

Open andristarr opened 7 months ago

andristarr commented 7 months ago

Is there a way to run an init script like this: await context.addInitScript("Object.defineProperty(navigator, 'webdriver', {get: () => undefined})")

To remove the navigator prop from the webdriver, that would be very beneficial for web scraping