加载新页面之前插入自定义的 JavaScript 脚本
selenium 过环境检测 ```python with open(path+'/stealth.min.js') as f: js = f.read() driver.execute_cdp_cmd("Page.addScriptToEvaluateOnNewDocument", { "source": js }) ```
标签:自定义,addScriptToEvaluateOnNewDocument,JavaScript,js,cdp,Page From: https://www.cnblogs.com/angdh/p/17787854.html