A plugin for puppeteer-extra.
yarn add puppeteer-extra-plugin-flash
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' })
})()