diff --git a/maxun-core/src/interpret.ts b/maxun-core/src/interpret.ts index 101a9d61..e1dc5bbe 100644 --- a/maxun-core/src/interpret.ts +++ b/maxun-core/src/interpret.ts @@ -81,6 +81,12 @@ export default class Interpreter extends EventEmitter { oldLog(...args); }; } + + PlaywrightBlocker.fromPrebuiltAdsAndTracking(fetch).then((blocker) => { + this.blocker = blocker; + }).catch((err) => { + this.log(`Failed to initialize ad-blocker:`, Level.ERROR); + }) } /**