diff options
author | Emilien Devos <contact@emiliendevos.be> | 2020-05-22 20:37:03 +0200 |
---|---|---|
committer | Emilien Devos <contact@emiliendevos.be> | 2020-05-22 20:37:03 +0200 |
commit | 49a3b14499b01486c3fc196f0b01c69f9c34faed (patch) | |
tree | acc50e6e6e672d944cd25c07d7789f487d0885c7 /index.js | |
parent | 921ceaa124defa200f0d16ffcc1e57553213c17d (diff) |
enable adblock in order to speed up the loading process
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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(); |