summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorEmilien Devos <contact@emiliendevos.be>2020-05-22 20:37:03 +0200
committerEmilien Devos <contact@emiliendevos.be>2020-05-22 20:37:03 +0200
commit49a3b14499b01486c3fc196f0b01c69f9c34faed (patch)
treeacc50e6e6e672d944cd25c07d7789f487d0885c7 /index.js
parent921ceaa124defa200f0d16ffcc1e57553213c17d (diff)
enable adblock in order to speed up the loading process
Diffstat (limited to 'index.js')
-rw-r--r--index.js4
1 files changed, 3 insertions, 1 deletions
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();