Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

smartdev10

💭
I may be slow to respond.
View GitHub Profile
@smartdev10
smartdev10 / CreateBrowser.js
Created Jul 28, 2020
puppeteer-extra exemple
View CreateBrowser.js
const puppeteer = require('puppeteer-extra');
const StealthPlugin = require('puppeteer-extra-plugin-stealth');
const AdblockerPlugin = require('puppeteer-extra-plugin-adblocker');
(async() => {
puppeteer.use(AdblockerPlugin({ blockTrackers: true }));
puppeteer.use(StealthPlugin());
puppeteer.use(require('puppeteer-extra-plugin-anonymize-ua')())
puppeteer.use(require('puppeteer-extra-plugin-user-preferences')({userPrefs: {