puppeteer-extra-plugin-user-preferences-lp
v3.1.1
Published
Launch puppeteer with arbitrary user preferences.
Downloads
53
Maintainers
Readme
puppeteer-extra-plugin-user-preferences-lp
A plugin for puppeteer-extra.
Install
yarn add puppeteer-extra-plugin-user-preferences-lp
API
Table of Contents
Extends: PuppeteerExtraPlugin
Launch puppeteer with arbitrary user preferences.
The user defined preferences will be merged with preferences set by other plugins.
Plugins can add user preferences by exposing a data entry with the name userPreferences
.
Overview: https://chromium.googlesource.com/chromium/src/+/master/chrome/common/pref_names.cc
Type: function (opts)
opts
Object Options (optional, default{}
)opts.userPrefs
Object An object containing the preferences. (optional, default{}
)
Example:
const puppeteer = require('puppeteer-extra')
puppeteer.use(require('puppeteer-extra-plugin-user-preferences-lp')({userPrefs: {
webkit: {
webprefs: {
default_font_size: 22
}
}
}}))
const browser = await puppeteer.launch()