extract-stealth-evasions
v2.7.3
Published
Extract stealth evasions from puppeteer-extra-plugin-stealth
Downloads
98
Maintainers
Readme
extract-stealth-evasions
This script offers a quick way to extract the latest stealth evasions from puppeteer-extra-stealth to (minified) JavaScript. The resulting JS file can be used in pure CDP implementations or to test the evasions in your devtools.
Usage with npx
You don't need to install anything, npx
runs wherever NodeJS is installed. :-)
npx extract-stealth-evasions
Will create a stealth.min.js
file in the current folder.
Using the CDN version
You can also fetch the latest version from gitCDN. For example, paste this one-liner in your browser devtools console:
document.body.appendChild(Object.assign(document.createElement('script'), {src: 'https://gitcdn.xyz/repo/berstend/puppeteer-extra/stealth-js/stealth.min.js'}))
How to use locally
yarn install
node index.js
Use the resulting stealth.min.js
file however you like.
Options
$ npx extract-stealth-evasions -h
Usage: extract-stealth-evasions [options]
Options:
--version Show version number [boolean]
-e, --exclude Exclude evasion (repeat for multiple)
-i, --include Include evasion (repeat for multiple)
-l, --list List available evasions
-h, --help Show help [boolean]
-m, --minify Minify the output [boolean] [default: true]