⏳ This skill is pending AI review.

Scores will appear once the review pipeline completes.

version unknown

ccf-playwright-browser

foxmale007@foxmale007⭐ 0 stars· last commit 7mo ago· 0 open issues

Stealth browser automation using Playwright with snapshot-based environment restoration. Use when browser automation needs anti-bot evasion, snapshot or cookie restoration, proxy support, or human-like navigation behavior.

Choose how to use this skill

You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.

1. Native installer

This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.

Do not guess an installer command or replace an existing version without reviewing the diff.

2. Complete package recommended

Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.

No complete ProSkills package is published for this listing yet.

3. Prompt-only

Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.

Need only the instruction file?

Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.

No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.

β€”/10

// RATINGS

⭐GitHub Stars
⭐ 0 on GitHubGitHub β†—

New / niche

🟒ProSkills Score
β€”
πŸ“

Not yet listed on ClawHub or SkillsMP

// README

🎭 ccf-playwright-browser

License: MIT Playwright Chrome Extension

πŸš€ Playwright AI skills combined with a Chrome extension for seamless browser automation with real user sessions

English | 🌐 δΈ­ζ–‡


✨ Features

FeatureDescription
πŸ” Session InjectionEasily inject your own login sessions for OpenClaw automation
πŸ›‘οΈ Anti-DetectionBypass browser detection with advanced stealth techniques
πŸͺ Cookie ExtractionCapture all cookies including HttpOnly cookies
🌐 Environment MimicryReplicate real browser environment (UA, locale, timezone, screen size)
πŸ“¦ One-Click ExportChrome extension for instant session extraction

πŸ“ Project Structure

ccf-playwright-browser/
β”œβ”€β”€ πŸ“‚ chrome-extension/     # Chrome extension for session extraction
β”‚   β”œβ”€β”€ manifest.json        # Extension manifest
β”‚   β”œβ”€β”€ popup.html           # Extension popup UI
β”‚   β”œβ”€β”€ popup.js             # Popup logic
β”‚   β”œβ”€β”€ background.js        # Service worker for data collection
β”‚   └── README.md            # Extension documentation
β”œβ”€β”€ πŸ“‚ scripts/              # Playwright automation scripts
β”‚   β”œβ”€β”€ init_browser.js      # Browser initialization with stealth
β”‚   └── snapshot.json        # Sample snapshot file
β”œβ”€β”€ LICENSE                  # MIT License
└── README.md                # This file

πŸš€ Quick Start

1️⃣ Install Chrome Extension

  1. Open Chrome and navigate to chrome://extensions
  2. Enable "Developer mode" in the top right corner
  3. Click "Load unpacked" and select the chrome-extension directory
  4. The extension icon will appear in your toolbar βœ…

2️⃣ Extract Login State

  1. Navigate to any website you want to extract login state from
  2. Log in to your account (if required) πŸ”
  3. Click the extension icon in the toolbar
  4. Click "Extract Login State" to collect:
    • πŸͺ Cookies (including HttpOnly)
    • 🌍 Browser environment
    • πŸ“‹ Request headers
    • πŸ’Ύ Storage data
  5. Click "Copy to Clipboard" πŸ“‹

3️⃣ Use with Playwright

// Save the copied JSON to snapshot.json
// Then run the initialization script
node scripts/init_browser.js scripts/snapshot.json

πŸ’‘ Usage Example

After copying the JSON data from the extension, use it like this:

θ―·δ½Ώη”¨δΈ‹ι’ηš„ browser snapshot 启用 ccf-playwright-browser,
幢加载 cookies、headers、storage ε’Œζ΅θ§ˆε™¨ηŽ―ε’ƒγ€‚
η„ΆεŽζ‰“εΌ€η½‘ι‘΅ `https://<your-website-url>/`,3η§’εŽζˆͺε›ΎοΌš

<copied json data>

πŸ”§ Technical Details

πŸ›‘οΈ Stealth Features

The init_browser.js script includes advanced anti-detection measures:

  • βœ… Removes navigator.webdriver flag
  • βœ… Masks automation indicators
  • βœ… Spoofs WebGL renderer info
  • βœ… Randomizes canvas fingerprint
  • βœ… Modifies audio context
  • βœ… Custom permission queries
  • βœ… Font checking bypass

πŸͺ Cookie Handling

  • Automatically normalizes cookie expiration timestamps
  • Supports all cookie attributes (Secure, HttpOnly, SameSite)
  • Handles oversized values gracefully

🌐 Environment Capture

Data TypeCaptured Info
NavigatorUser-Agent, Platform, Language, Hardware specs
ScreenWidth, Height, Color depth, Available space
IntlLocale, Timezone, Number format
StoragelocalStorage, sessionStorage
HeadersObserved request headers

πŸ“‹ Requirements

  • 🟒 Node.js 16+
  • 🟒 Playwright
  • 🟒 Chrome Browser (for extension)

πŸ“¦ Installation

# Clone the repository
git clone https://github.com/yourusername/ccf-playwright-browser.git

# Install Playwright
npm install playwright

# Install Playwright browsers
npx playwright install chromium

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Acknowledgments

  • Playwright - Web testing and automation framework
  • Chrome Extensions API - For browser data access

⭐ Star this repo if you find it helpful! ⭐

Made with ❀️ for the automation community

// HOW IT'S BUILT

// FILES

2 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.

  • SKILL.md2.2 KBupstream β†—
    ---
    name: ccf-playwright-browser
    description: Stealth browser automation using Playwright with snapshot-based environment restoration. Use when browser automation needs anti-bot evasion, snapshot or cookie restoration, proxy support, or human-like navigation behavior.
    metadata: {"openclaw":{"emoji":"🎭","os":["linux","darwin","win32"],"requires":{"bins":["node","npx"]},"install":[{"id":"npm-playwright","kind":"npm","package":"playwright","bins":["playwright"],"label":"Install Playwright"}]}}
    ---
    
    
    
    # Playwright Stealth Automation Skill
    
    
    
    This skill launches a **stealth Playwright browser** with anti-bot protections and snapshot-based environment restoration.
    
    
    
    It bypasses many common detection systems including:
    
    
    
    - Cloudflare
    
    - Datadome
    
    - Akamai
    
    - PerimeterX
    
    
    
    Capabilities:
    
    
    
    - browser snapshot restore
    
    - cookies restore
    
    - localStorage/sessionStorage restore
    
    - navigator fingerprint spoofing
    
    - WebGL fingerprint spoof
    
    - Canvas fingerprint noise
    
    - Audio fingerprint noise
    
    - human mouse movement
    
    - human scrolling
    
    - header spoofing
    
    - proxy support
    
    
    
    ---
    
    
    
    # Installation
    
    
    
    ```
    
    npm install -g playwright
    
    npx playwright install chromium
    
    ```
    
    
    
    Linux:
    
    
    
    ```
    
    sudo npx playwright install-deps chromium
    
    ```
    
    
    
    ---
    
    
    
    # Snapshot Input
    
    
    
    The browser environment can be restored using a **snapshot JSON**.
    
    
    
    Priority order:
    
    
    
    ```
    
    1 user provided snapshot JSON
    
    2 scripts/snapshot.json
    
    ```
    
    
    
    If the user provides a JSON snapshot block, it should be passed to the script.
    
    
    
    ---
    
    
    
    # Launching Browser
    
    
    
    Agents should initialize the browser by executing:
    
    
    
    ```
    
    node scripts/init_browser.js
    
    ```
    
    
    
    If the user provides snapshot JSON, pass it via stdin:
    
    
    
    ```
    
    node scripts/init_browser.js <<EOF
    
    {snapshot json}
    
    EOF
    
    ```
    
    
    
    ---
    
    
    
    # Automation Strategy
    
    
    
    Agents should simulate human behavior:
    
    
    
    - random delays
    
    - mouse movement
    
    - natural scrolling
    
    - avoid deterministic timing
    
    
    
    Example actions after browser launch:
    
    
    
    - navigate to a page
    
    - scroll gradually
    
    - move mouse randomly
    
    - wait between actions
    
    
    
    ---
    
    
    
    # Proxy Example
    
    
    
    ```
    
    HTTP_PROXY=http://127.0.0.1:7890 node scripts/init_browser.js
    
    ```
    
    
    
    ---
    
    
    
    # References
    
    
    
    Playwright Docs  
    
    https://playwright.dev
    
    
    
    API Reference  
    
    https://playwright.dev/docs/api
    
    
    
  • README.mdupstream β†—

    Contents are not inlined in the catalog. Open the upstream file.

Plain-text copy, no login: /skill-bundles/foxmale007-ccf-playwright-browser.md

// REPO STATS

0 stars
0 open issues
Last commit: 7mo ago