by eboyjr · 8y ago · 0 comments
Eli Grey and I have bypassed your "hideWebDriver()" function[1] in a single line of code:
if (navigator.webdriver || (Navigator.prototype && Object.getOwnPropertyDescriptors(Navigator.prototype)["webdriver"])) {
// Chrome headless detected - navigator.webdriver exists or was redefined
}
[1]: https://github.com/apifytech/apify-js/blob/262a2e604b1adb3d8...