driver.execute_cdp_cmd("Page.addScriptToEvaluateOnNewDocument", { "source": """ const newProto = navigator.__proto__ delete newProto.webdriver navigator.__proto__ = newProto """ })