Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
puppeteer-extra — 💯 通过插件教 puppeteer 新把戏。 | Kitploit
工具/GitHubGitHub/berstend/puppeteer-extra
脚本与自动化实用工具与框架网络爬虫指纹欺骗CAPTCHA 绕过
GitHubberstend/puppeteer-extra

puppeteer-extra

💯 通过插件教 puppeteer 新把戏。

查看仓库
7.4k7812年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
网站

puppeteer-extra Downloads

这是 puppeteer-extra 的 monorepo,一个用于 puppeteer 的模块化插件框架。:-)

🌟 主要文档请前往 puppeteer-extra 包查看。

我们最近还引入了对 Playwright 的支持,如果你感兴趣,可以前往 playwright-extra 查看。

Monorepo

贡献

贡献

欢迎提交 PR 和新插件!puppeteer-extra 的插件 API 简洁且有趣。请查看 PuppeteerExtraPlugin 基类文档以开始,并参考现有插件(最小示例是 anonymize-ua 插件)。

我们使用由 Lerna(以及 yarn workspaces)驱动的 monorepo、ava 进行测试、standard 风格进行 lint,并大量使用 JSDoc 基于代码自动生成 markdown 文档。:-)

Lerna

Lerna

此 monorepo 由 Lerna 和 yarn workspaces 驱动。

初始设置

root@kitploit:~
# Install deps
yarn

# Bootstrap the packages in the current Lerna repo.
# Installs all of their dependencies and links any cross-dependencies.
yarn bootstrap

# Build all TypeScript sources
yarn build

开发流程

root@kitploit:~
# Install debug in all packages
yarn lerna add debug

# Install fs-extra to puppeteer-extra-plugin-user-data-dir
yarn lerna add fs-extra --scope=puppeteer-extra-plugin-user-data-dir

# Remove dependency
# https://github.com/lerna/lerna/issues/833
yarn lerna exec --concurrency 1 'yarn remove fs-extra; echo 0'

# Run test in all packages
yarn test

# Update JSDoc based documentation in markdown files
yarn docs

# Upgrade project wide deps like puppeteer
# (We keep the devDependency version blurry)
rm -rf node_modules
rm -rf yarn.lock
yarn
yarn lerna bootstrap

# Update deps within packages (interactive)
yarn lernaupdate

# If in doubt :-(
yarn lerna exec "rm -f yarn.lock; rm -rf node_modules; echo 0"
rm -f yarn.lock &&  rm -rf node_modules && yarn cache clean

# Run tests of specific package
cd packages/puppeteer-extra-plugin-stealth
yarn test

# Run tests of specific stealth evasion
cd packages/puppeteer-extra-plugin-stealth
yarn ava -v ./evasions/user-agent-override/index.test.js

# Test a local monorepo package in an outside folder as it would've been installed from the registry
# Change PACKAGE_DIR to the path of this monorepo and PACKAGE to the package you wish to install
PACKAGE=puppeteer-extra PACKAGE_DIR=/Users/foo/puppeteer-extra/packages && yarn remove $(echo $PACKAGE); true && rm -f $(pwd)/$(echo $PACKAGE)-latest.tgz && yarn --cwd $(echo $PACKAGE_DIR)/$(echo $PACKAGE) pack --filename $(pwd)/$(echo $PACKAGE)-latest.tgz && YARN_CACHE_FOLDER=/tmp/yarn yarn add file:$(pwd)/$(echo $PACKAGE)-latest.tgz && rm -rf /tmp/yarn

下载工具

发布

root@kitploit:~
# make sure you're signed into npm before publishing
# yarn publishing is broken so lerna uses npm
npm whoami

# ensure everything is up2date and peachy
yarn
yarn bootstrap
yarn lerna link
yarn build
yarn test

# Phew, let's publish these packages!
# - Will publish all changed packages
# - Will ask for new pkg version per package
# - Will updated inter-package dependency versions automatically
yarn lerna publish

# Fix new dependency version symlinks
yarn bootstrap && yarn lerna link