Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

playwright-bot-bypass

БесплатноЗапускает вложенные скриптыНе проверен

This skill should be used when the user asks to "bypass bot detection", "avoid CAPTCHA", "stealth browser automation", "undetected playwright", "bypass Google…

greekr4от greekr4★ 217 звёзд на GitHub

Об этом скилле

Playwright Bot Bypass

Reduce bot detection using patchright + real headed Chrome, or connect to a Moli CDP server. Passes fingerprint checkers (bot.sannysoft.com, areyouheadless) and avoids triggering CAPTCHAs on Google. Not a guaranteed bypass for CDP/runtime-aware enterprise bot managers — see "Detection Coverage" for measured results.

Authorized use only. This is for QA, accessibility testing, and research on sites you own or are permitted to test. Respect each site's Terms of Service, robots.txt, and applicable law. Do not use it to bypass paywalls, abuse rate limits, or scrape against a site's stated wishes.

How Detection Is Defeated (and by which layer)

Evasion comes from three layers, not one — most of it is the real browser, not hand-written JS:

Detection Point Standard Playwright (headless) Defeated by
CDP / Runtime.enable leak Present (headless tell) patchright (baked into the driver)
window.__pwInitScripts (isPlaywright) Present artifact strip (init script deletes it every nav)
navigator.webdriver true patchright (reports false; we do NOT delete it — undefined is itself a tell)
WebGL Renderer SwiftShader (software) channel:'chrome' + headed mode (real GPU)
User Agent Contains "HeadlessChrome" channel:'chrome' (real Chrome UA) — no JS override
Canvas fingerprint Software-rendered tell headed real Chrome (genuine GPU canvas) — no JS noise
navigator.plugins Empty array headed real Chrome (genuine PluginArray) — no JS fake
navigator.languages ['en-US'] only locale option (native, worker-consistent — no JS getter)

Why so little hand-written JS? Across v2.1/v2.2 the old fake-PluginArray, canvas-noise, hardcoded-hardwareConcurrency, permissions-override, webdriver delete, and navigator.languages getter were all removed — every one created a detectable inconsistency (own-property tells, worker mismatches, undefined webdriver, an Illegal invocation crash). v2.3 keeps exactly two active measures on the Chrome engine: strip Playwright's __pwInitScripts artifact, and rely on patchright's baked-in Runtime-fix. Everything else is the genuine, self-consistent real browser. Less faking = more consistent = harder to detect.

Prerequisites

  • Node.js 18+ with ESM support (.mjs files)
  • Google Chrome installed (not just Chromium)
  • Headed mode required (headless: false) — no display = no stealth

Verify Chrome is installed:

# macOS
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version
# Windows
"C:\Program Files\Google\Chrome\Application\chrome.exe" --version
# Linux
google-chrome --version

Quick Start

1. Install

npm init -y && npm install patchright

2. Create stealth-test.mjs

import os from 'node:os';
import path from 'node:path';

// patchright patches are baked in — no env setup needed.
const { chromium } = await import('patchright');

const browser = await chromium.launch({
  headless: false,                                  // headed = real GPU/canvas
  channel: 'chrome',                                // real Chrome = real UA/WebGL/plugins
  args: ['--disable-blink-features=AutomationControlled']
});

// `locale` sets navigator.languages + Accept-Language natively & consistently.
const context = await browser.newContext({ locale: 'ko-KR' });

// The ONLY init script: strip Playwright's main-world signature. Touch NOTHING
// on navigator — the real browser's values are already genuine & consistent.
await context.addInitScript(() => {
  for (const k of Object.getOwnPropertyNames(window)) {
    if (/^__pw|pwInitScripts|playwright/i.test(k)) {
      try { delete window[k]; } catch {}
    }
  }
  if (!window.chrome) window.chrome = {};
});

const page = await context.newPage();

try {
  await page.goto('https://bot.sannysoft.com', { waitUntil: 'networkidle' });
  const out = path.join(os.tmpdir(), 'stealth-test.png');
  await page.screenshot({ path: out });
  console.log(`Screenshot saved: ${out}`);
} finally {
  await browser.close();
}

3. Run

node stealth-test.mjs

Using the Template (Recommended)

The scripts/stealth-template.mjs provides a reusable factory with all patches pre-applied:

import { createStealthBrowser, humanDelay, humanType, simulateMouseMovement } from './scripts/stealth-template.mjs';

const { browser, page } = await createStealthBrowser();

try {
  await page.goto('https://example.com');

  // Human-like mouse movement (avoids Cloudflare Turnstile)
  await simulateMouseMovement(page);

  // Human-like typing instead of instant fill
  await humanType(page, 'input[name="q"]', 'search query');
  await humanDelay(300, 800);
} finally {
  await browser.close();
}

Template Options

const { browser, c
Полный SKILL.md на GitHub

Установить playwright-bot-bypass в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.gitignoreexamples/ab-test.mjsexamples/stealth-google-search.mjsexamples/stealth-twitter-scrape.mjspackage-lock.jsonpackage.jsonscripts/bot-detection-test.mjsscripts/stealth-template.mjs

FAQ

Что делает скилл playwright-bot-bypass?

This skill should be used when the user asks to "bypass bot detection", "avoid CAPTCHA", "stealth browser automation", "undetected playwright", "bypass Google bot check", "rebrowser-playwright", "patchright", "moli", or needs to automate websites that detect and block bots.

Как установить скилл playwright-bot-bypass?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл playwright-bot-bypass запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить playwright-bot-bypass с