Rebrowser Patches

Stale
GitHub JavaScript No License

Description

Anti-detection patches for Playwright and browser automation scenarios, helping automated browsers appear more like real user sessions.

Key Features

  • Fixes Runtime.Enable detection leak in Playwright and Puppeteer
  • Three anti-detection fix modes: addBinding, isolated context, Enable/Disable
  • Drop-in replacement packages: rebrowser-puppeteer and rebrowser-playwright
  • Dynamically toggle patch modes via environment variables
  • Bypasses Cloudflare, DataDome, and other major anti-bot detection systems
  • Online bot-detector tool to verify patch effectiveness

Use Cases

πŸ’‘ Long-running web scraping automation tasks that need to avoid detection
πŸ’‘ Form submission and interaction automation bypassing anti-bot systems
πŸ’‘ Improve task continuity for AI agents using browser automation
πŸ’‘ Test website detection and defense capabilities against automation tools
πŸ’‘ Replace native Puppeteer/Playwright for more stealthy automation

Quick Start

1. In package.json, replace: "puppeteer": "npm:rebrowser-puppeteer@^23.3.1"
2. Run npm install to install
3. No source code changes needed β€” anti-detection is automatic
4. Visit bot-detector.rebrowser.net to test patch effectiveness
5. Toggle modes via REBROWSER_PATCHES_RUNTIME_FIX_MODE env variable

Related Projects