项目的 README,来自 github.com/whaleyxbt/patchright-enhanced。合并为一个 markdown 文件:README.md。
stealth browser automation framework for penetration testing, scraping, and WAF bypass. Built on Patchright.
clean chrome sessions that pass Cloudflare, Kasada, DataDome, and other WAFs out of the box.
that's basically just a wrapper around OG patchright, so it's easier to get started.
Use Node.js 20 or newer and pnpm.
# Install dependencies
pnpm install
# Install Chrome for Patchright
pnpm exec patchright install chrome
# Copy env template and configure
cp .env.example .env
# Add your proxies
# Format: host:port:username:password (one per line)
nano proxies.txt
All settings are in .env:
| Variable | Default | Description |
|---|---|---|
BROWSER_EXECUTABLE_PATH |
/usr/bin/google-chrome-stable |
Path to Chrome binary |
BROWSER_TIMEZONE |
Europe/Berlin |
Browser timezone |
MAX_PARALLEL |
1 |
Number of parallel sessions |
START_PAGE_URL |
https://google.com/ |
Initial page to open |
pnpm build
pnpm start
it opens a chrome session with the configured proxy and navigates to START_PAGE_URL. the session stays open until you close the browser window manually.
my small framework relies entirely on patchright's built-in stealth patches:
Runtime.enable leak patched (JS execution in isolated contexts)--disable-blink-features=AutomationControlled flag added--enable-automation flag removednavigator.webdriver returns false nativelyaddInitScript, no Object.defineProperty overridesSee CONTRIBUTING.md for setup, checks, and the pull request workflow. Please follow the code of conduct and report vulnerabilities using the security policy. Issue and PR templates are included on GitHub.
The next steps are to strengthen the existing core, add a UI/UX for profiles, proxies, and sessions, and evolve this setup into an automatable anti-detect browser with a local API and CLI. These capabilities are planned, not implemented. See the mini roadmap for the checklist.