From dd119955d251d09fc89cc4943e46845a09044be3 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 21 Aug 2024 05:06:34 +0530 Subject: [PATCH] feat: create blocker for Interpreter --- maxun-core/src/interpret.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maxun-core/src/interpret.ts b/maxun-core/src/interpret.ts index b03ed140..101a9d61 100644 --- a/maxun-core/src/interpret.ts +++ b/maxun-core/src/interpret.ts @@ -1,5 +1,7 @@ /* eslint-disable no-await-in-loop, no-restricted-syntax */ import { Page, PageScreenshotOptions } from 'playwright'; +import { fullLists, PlaywrightBlocker, Request } from '@cliqz/adblocker-playwright'; +import fetch from 'cross-fetch'; import path from 'path'; import { EventEmitter } from 'events'; @@ -46,6 +48,8 @@ export default class Interpreter extends EventEmitter { private log: typeof log; + private blocker: PlaywrightBlocker | null = null; + constructor(workflow: WorkflowFile, options?: Partial) { super(); this.workflow = workflow.workflow;