Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsJul 25, 2026·2 min de lecture

Puppeteer Extra — Extend Puppeteer with Stealth and Plugin Ecosystem

A modular plugin framework for Puppeteer that adds stealth capabilities, ad blocking, CAPTCHA solving, and user preference persistence.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Puppeteer Extra Overview
Commande d'installation directe
npx -y tokrepo@latest install 3074efc2-8869-11f1-9bc6-00163e2b0d79 --target codex

À exécuter après confirmation du plan en dry-run.

Introduction

Puppeteer Extra wraps the standard Puppeteer API with a plugin system. Its most popular plugin, puppeteer-extra-plugin-stealth, patches multiple browser fingerprints to make automated Chrome sessions indistinguishable from manual browsing.

What Puppeteer Extra Does

  • Adds a plugin pipeline that hooks into Puppeteer browser and page lifecycle events
  • Patches WebGL, WebRTC, navigator, and Chrome runtime fingerprints via the stealth plugin
  • Blocks ads and trackers with the adblocker plugin using the same engine as uBlock Origin
  • Solves reCAPTCHA challenges automatically with the recaptcha plugin
  • Persists user data directories and cookies across sessions

Architecture Overview

Puppeteer Extra intercepts Puppeteer's launch and connect methods, running each registered plugin's onBrowser and onPageCreated hooks. The stealth plugin applies a set of evasion modules (chrome.runtime, navigator.webdriver, iframe.contentWindow) via page.evaluateOnNewDocument calls before any page script executes.

Self-Hosting & Configuration

  • Install puppeteer-extra alongside regular puppeteer
  • Add plugins via puppeteer.use() before calling launch()
  • Configure stealth evasions individually if defaults are too aggressive
  • Use the adblocker plugin with blocker lists for faster page loads
  • Works with puppeteer-core for custom Chrome/Chromium binaries

Key Features

  • Drop-in Puppeteer replacement with full API compatibility
  • Stealth plugin passes all major bot detection test suites
  • Modular plugin architecture for composing functionality
  • Supports both Puppeteer and Playwright via playwright-extra
  • Active community maintaining evasion updates as detection evolves

Comparison with Similar Tools

  • Puppeteer — Standard API without stealth; puppeteer-extra adds anti-detection
  • undetected-chromedriver — Python Selenium-based; puppeteer-extra is Node.js-native
  • Playwright — Multi-browser support; puppeteer-extra focuses on Chrome stealth
  • Crawlee — High-level scraping framework; puppeteer-extra operates at the driver level
  • Browser Use — AI-driven automation; puppeteer-extra provides programmatic control

FAQ

Q: Does the stealth plugin guarantee passing all bot detection? A: It passes most fingerprint checks, but behavioral analysis (mouse patterns, timing) may still trigger detection.

Q: Can I use it with Playwright instead of Puppeteer? A: Yes. The playwright-extra package provides the same plugin system for Playwright.

Q: Does it work in headless mode? A: Yes. The stealth plugin specifically targets headless detection evasion.

Q: How do I add multiple plugins? A: Call puppeteer.use() for each plugin before launching the browser.

Sources

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires