From 49a3b14499b01486c3fc196f0b01c69f9c34faed Mon Sep 17 00:00:00 2001 From: Emilien Devos Date: Fri, 22 May 2020 20:37:03 +0200 Subject: enable adblock in order to speed up the loading process --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'index.js') diff --git a/index.js b/index.js index 90123ac..5a15868 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,7 @@ const puppeteer = require('puppeteer-extra'); -const StealthPlugin = require('puppeteer-extra-plugin-stealth') +const StealthPlugin = require('puppeteer-extra-plugin-stealth'); +const AdblockerPlugin = require('puppeteer-extra-plugin-adblocker'); +puppeteer.use(AdblockerPlugin()); puppeteer.use(StealthPlugin()); const Koa = require('koa'); const app = new Koa(); -- cgit v1.2.3