Rename to hkt.sh
This commit is contained in:
37
node_modules/puppeteer-extra-plugin-stealth/evasions/navigator.vendor/readme.md
generated
vendored
Normal file
37
node_modules/puppeteer-extra-plugin-stealth/evasions/navigator.vendor/readme.md
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
## API
|
||||
|
||||
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
|
||||
|
||||
#### Table of Contents
|
||||
|
||||
- [class: Plugin](#class-plugin)
|
||||
|
||||
### class: [Plugin](https://github.com/berstend/puppeteer-extra/blob/e6133619b051febed630ada35241664eba59b9fa/packages/puppeteer-extra-plugin-stealth/evasions/navigator.vendor/index.js#L28-L55)
|
||||
|
||||
- `opts` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** Options (optional, default `{}`)
|
||||
- `opts.vendor` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** The vendor to use in `navigator.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:
|
||||
|
||||
```javascript
|
||||
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)
|
||||
```
|
||||
|
||||
---
|
||||
Reference in New Issue
Block a user