简体   繁体   中英

Playwright - Fake canvas, audio and font-families

I'm trying to make my playwright browser profile to be unique with different fingerprints. I believe the fingerprints are generated base on lots of browser data, included canvas, audio and font-families.

So I want to set above data values randomly whenever I started a playwright browser, please let me know if you worked on the same case before, and how it looks like in the code lines (nodejs)

Thank you so much,

The best way to do this is through loading extensions. There are already chrome extensions present which alter your fingerprints and playwright allows you to load extensions during launch. The only drawback is that you would not be able to use headless mode if you want to use extensions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM