puppeteer-extra-plugin-flash
v2.3.3
Published
Allow flash on all sites without user interaction.
Downloads
891
Maintainers
Readme
puppeteer-extra-plugin-flash
A plugin for puppeteer-extra.
Install
yarn add puppeteer-extra-plugin-flash
Changelog
v2.2.5
API
Table of Contents
Plugin
Extends: PuppeteerExtraPlugin
Allow flash on all sites without user interaction.
Note: The flash plugin is not working in headless mode.
Note: When using the default Chromium browser
pluginPath
and pluginVersion
must be specified (stated in chrome://version/
).
Note: Unfortunately this doesn't seem to enable flash on incognito pages, see this gist for a workaround using management policies.
Type: function (opts)
opts
Object Options (optional, default{}
)
Example:
const puppeteer = require('puppeteer-extra')
puppeteer.use(require('puppeteer-extra-plugin-flash')())
;(async () => {
const browser = await puppeteer.launch({ headless: false })
const page = await browser.newPage()
await page.goto('http://ultrasounds.com', { waitUntil: 'domcontentloaded' })
})()