This repository contains two highly advanced mouse simulation engines designed to bypass strict anti-bot detection systems (like Forsta, Decipher, etc.) in browser extensions.
-
cdp_mouse.js(Hardware-Level Engine):- Where to use: Background Script / Service Worker.
- How it works: Uses Chrome DevTools Protocol (CDP) to simulate physical mouse movements using Bezier curves and dispatches actual hardware-level click events. 100% undetectable.
-
dom_mouse.js(Native DOM Engine):- Where to use: Content Script.
- How it works: Dispatches a sequence of trusted Pointer, Mouse, and Focus events at the DOM level. Includes auto-scrolling, bounding-box validation, and deep Shadow DOM piercing.
- Inject
dom_mouse.jsinto your webpage and callsimulateNativeMouseClick(element). - For CDP, ensure your extension has
"debugger"permissions inmanifest.jsonand call thehumanMouseMove()function via your background script.