puppeteer-stream icon indicating copy to clipboard operation
puppeteer-stream copied to clipboard

[Question] Using puppeteer-extra plugins

Open brodysctt opened this issue 4 years ago • 3 comments

Would love to use the adblocker plugin for my current project, and the stealth plugin for my next one.

I tried making a few adjustments to PuppeteerStream.ts:

import { LaunchOptions, Browser, Page, BrowserOptions, ChromeArgOptions } from "puppeteer";
import puppeteer from 'puppeteer-extra'
import Adblocker from 'puppeteer-extra-plugin-adblocker'
puppeteer.use(AdblockerPlugin()) // Added before the browser is initialized on line 69.

The result is an indefinitely loading blank tab – any ideas on how I could get it to work?

brodysctt avatar Nov 18 '21 07:11 brodysctt

How do you start the puppeteer browser? Can you show your launch code

samuelscheit avatar Nov 18 '21 09:11 samuelscheit

I'm just running the file.js example as is – no changes made there

brodysctt avatar Nov 18 '21 16:11 brodysctt

Any progress on this? I love the extension but need to be able to use it with puppeteer-extra too.

stevebutterworth avatar Apr 01 '22 16:04 stevebutterworth

Have a look at the example file.

samuelscheit avatar Mar 06 '23 01:03 samuelscheit