autoreg-skills-max: initial public release (restored, redacted, hardened)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// Override MouseEvent screenX/screenY to bypass CDP-based bot detection.
|
||||
// Cloudflare Turnstile detects CDP browsers by checking for screenX=0, screenY=0
|
||||
// which happens because CDP doesn't emulate real mouse coordinates.
|
||||
Object.defineProperty(MouseEvent.prototype, 'screenX', {
|
||||
get: function () {
|
||||
return Math.floor(Math.random() * 400) + 800;
|
||||
},
|
||||
});
|
||||
Object.defineProperty(MouseEvent.prototype, 'screenY', {
|
||||
get: function () {
|
||||
return Math.floor(Math.random() * 200) + 400;
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user