kkoooqq / fakebrowser

🤖 Fake fingerprints to bypass anti-bot systems. Simulate mouse and keyboard operations to make behavior like a real person.
GNU Lesser General Public License v3.0
1.09k stars 210 forks source link

Inject js not working #45

Closed Jiw0cha closed 2 years ago

Jiw0cha commented 2 years ago

Hi.

Inject js not working, if use mouse(hardware/not use automation with puppeteer) click to link.

step to reproduce:

open https://abrahamjuliot.github.io/creepjs/ over FakeBrowser

scroll down page and click mouse (example Screen).

kkoooqq commented 2 years ago

https://user-images.githubusercontent.com/43202488/149577764-bdb612e2-139d-4abc-9438-5e1b7d466cfc.mov

works well in my side. Emulating windows with a mac

Jiw0cha commented 2 years ago

Click open new Tab. Opening a link in a new tab doesn't work.

kkoooqq commented 2 years ago

it's issue of puppeteer,

https://github.com/puppeteer/puppeteer/issues/3667 You could use CDP to make some hooks of your own

ref: https://github.com/microsoft/playwright/issues/1101 https://github.com/berstend/puppeteer-extra/issues/23

feel free to PR.