API
Table of Contents
class: Plugin
optsObject? Options (optional, default{})opts.vendorstring? The vendor to use innavigator.vendor(default:Google Inc.)
Extends: PuppeteerExtraPlugin
By default puppeteer will have a fixed navigator.vendor property.
This plugin makes it possible to change this property.
Example:
const puppeteer = require('puppeteer-extra')
const StealthPlugin = require('puppeteer-extra-plugin-stealth')
const stealth = StealthPlugin()
// Remove this specific stealth plugin from the default set
stealth.enabledEvasions.delete('navigator.vendor')
puppeteer.use(stealth)
// Stealth plugins are just regular `puppeteer-extra` plugins and can be added as such
const NavigatorVendorPlugin = require('puppeteer-extra-plugin-stealth/evasions/navigator.vendor')
const nvp = NavigatorVendorPlugin({ vendor: 'Apple Computer, Inc.' }) // Custom vendor
puppeteer.use(nvp)