puppeteer-extra-plugin-stealth
Advanced tools
Comparing version 2.6.2 to 2.6.3
@@ -18,2 +18,3 @@ 'use strict' | ||
// Pre Chrome 88.0.4291.0 | ||
async onPageCreated(page) { | ||
@@ -24,2 +25,16 @@ await page.evaluateOnNewDocument(() => { | ||
} | ||
// Post Chrome 88.0.4291.0 | ||
// Note: this will add an infobar to Chrome with a warning that an unsupported flag is set | ||
// To remove this bar on Linux, run: mkdir -p /etc/opt/chrome/policies/managed && echo '{ "CommandLineFlagSecurityWarningsEnabled": false }' > /etc/opt/chrome/policies/managed/managed_policies.json | ||
async beforeLaunch(options) { | ||
// If disable-blink-features is already passed, append the AutomationControlled switch | ||
options.args.forEach(e => { | ||
if (e.startsWith('--disable-blink-features=')) { | ||
e += ',AutomationControlled' | ||
return // eslint-disable-line | ||
} | ||
}) | ||
options.args.push(`--disable-blink-features=AutomationControlled`) | ||
} | ||
} | ||
@@ -26,0 +41,0 @@ |
@@ -53,3 +53,3 @@ 'use strict' | ||
userAgent: null, | ||
acceptLanguage: 'en-US,en', | ||
locale: 'en-US,en', | ||
platform: 'Win32' | ||
@@ -56,0 +56,0 @@ } |
{ | ||
"name": "puppeteer-extra-plugin-stealth", | ||
"version": "2.6.2", | ||
"version": "2.6.3", | ||
"description": "Stealth mode: Applies various techniques to make detection of headless puppeteer harder.", | ||
@@ -56,3 +56,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "0a77ee0dfd46197958c958da5f4c39ba02c4e414" | ||
"gitHead": "678e6f6d3557c3da0f499d2cebe238ba9a7f26f0" | ||
} |
@@ -72,8 +72,6 @@ # puppeteer-extra-plugin-stealth [![Build Status](https://travis-ci.org/berstend/puppeteer-extra.svg?branch=master)](https://travis-ci.org/berstend/puppeteer-extra) [![npm](https://img.shields.io/npm/v/puppeteer-extra-plugin-stealth.svg)](https://www.npmjs.com/package/puppeteer-extra-plugin-stealth) | ||
Please check out the [main documentation](https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra) to learn more about `puppeteer-extra` (Firefox usage, other Plugins, etc). | ||
> Please check out the [main documentation](https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra) to learn more about `puppeteer-extra` (Firefox usage, other Plugins, etc). | ||
## Status | ||
_January 2020_ | ||
- ✅ **`puppeeteer-extra` with stealth passes all public bot tests.** | ||
@@ -89,4 +87,6 @@ | ||
🎁 **Note:** Until we've automated changelog updates in readmes please follow the `#announcements` channel in our [discord server](https://discord.gg/vz7PeKk) for updates and changelog info. | ||
> 🎁 **Note:** Until we've automated changelog updates in markdown files please follow the `#announcements` channel in our [discord server](https://discord.gg/vz7PeKk) for the latest updates and changelog info. | ||
_Older changelog:_ | ||
#### `v2.4.7` | ||
@@ -93,0 +93,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
699228
4656