A robust, dual-layer text input simulation engine designed to bypass strict anti-bot detection systems (such as Forsta, Decipher, and Quest Mindshare) in browser extensions. This repository provides both hardware-level and native DOM-level typing mechanisms to ensure 100% undetectable, natural text input.
- Human-Like Typing Speed: Characters are typed with randomized delays (80ms - 120ms) mimicking real human input.
- Typo Simulation & Auto-Correction: The CDP engine has a built-in probability to make deliberate typos, realize the mistake, press
Backspace, and type the correct character. - Natural Pauses: Simulates human cognitive pauses between words (spaces) and after every few keystrokes.
- React Native & Chat Survey Support: Automatically triggers
Enterkey events and locates/clicks dynamic "Send" buttons (perfect for Quest Mindshare and modern UI frameworks). - Stealth DOM Clearing: Uses native property descriptors (
nativeInputValueSetter) to clear existing text fields without triggering artificial script flags.
- Environment: Background Script / Service Worker.
- Mechanism: Uses Chrome DevTools Protocol (CDP) to dispatch physical
keyDown,keyUp, andcharevents directly to the browser engine. Completely invisible to standard DOM event listeners.
- Environment: Content Script.
- Mechanism: Dispatches a sequence of trusted
KeyboardEventandInputevents at the DOM level. Includes auto-scrolling, deep Shadow DOM support, and automated submission for chat-based inputs.
For the Native DOM Engine (Content Script):
const inputField = document.querySelector('textarea.survey-input');
const textToType = "I really enjoyed watching this movie because of its great storyline.";
// Execute human-like typing
simulateHumanTyping(inputField, textToType)
.then(() => console.log("Typing completed successfully!"))
.catch(err => console.error(err));