@zorilla/puppeteer-extra-plugin-flash
v1.0.1
Published
Allow flash on all sites without user interaction.
Downloads
147
Maintainers
Readme
puppeteer-extra-plugin-flash
A plugin for
puppeteer-extra.
Install
npm install puppeteer-extra-plugin-flashAPI
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)
optsObject Options (optional, default{})
Example:
import puppeteer from '@zorilla/puppeteer-extra'
import flashPlugin from '@zorilla/puppeteer-extra-plugin-flash'
puppeteer.use(flashPlugin())
;(async () => {
const browser = await puppeteer.launch({ headless: false })
const page = await browser.newPage()
await page.goto('http://ultrasounds.com', { waitUntil: 'domcontentloaded' })
})()