JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 489066
  • Score
    100M100P100Q192535F
  • License MIT

Launch puppeteer with arbitrary user preferences.

Package Exports

  • puppeteer-extra-plugin-user-preferences
  • puppeteer-extra-plugin-user-preferences/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (puppeteer-extra-plugin-user-preferences) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

puppeteer-extra-plugin-user-preferences

A plugin for puppeteer-extra.

Install

yarn add puppeteer-extra-plugin-user-preferences

API

Table of Contents

Plugin

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')({userPrefs: {
  webkit: {
    webprefs: {
      default_font_size: 22
    }
  }
}}))
const browser = await puppeteer.launch()