selenium icon indicating copy to clipboard operation
selenium copied to clipboard

How to load stealth.min.js

Open pgshow opened this issue 4 years ago • 3 comments

Can't find a way to load stealth.min.js as python does, does anyone know how?

Python code:

with open('./js/stealth.min.js') as f: js = f.read()

browser.execute_cdp_cmd("Page.addScriptToEvaluateOnNewDocument", { "source": js })

pgshow avatar Aug 19 '21 09:08 pgshow

I am wondering whether you found a solution for this or not?

NuLL3rr0r avatar Jun 25 '22 12:06 NuLL3rr0r

I gave up

pgshow avatar Jul 01 '22 04:07 pgshow

Thanks for letting me know. I ended up going for LibreWolf (which disables WebGL/Canvas stuff by default) in combination with rog-go, though I still have some challenges to overcome there as well.

NuLL3rr0r avatar Jul 01 '22 18:07 NuLL3rr0r