How to use the @cliqz/adblocker-puppeteer.PuppeteerBlocker.fromPrebuiltAdsAndTracking function in @cliqz/adblocker-puppeteer

To help you get started, we’ve selected a few @cliqz/adblocker-puppeteer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github berstend / puppeteer-extra / packages / puppeteer-extra-plugin-adblocker / src / index.ts View on Github external
private async loadFromRemote(): Promise {
    this.debug('load from remote', { blockTrackers: this.opts.blockTrackers })
    if (this.opts.blockTrackers === true) {
      return PuppeteerBlocker.fromPrebuiltAdsAndTracking(fetch)
    } else {
      return PuppeteerBlocker.fromPrebuiltAdsOnly(fetch)
    }
  }

@cliqz/adblocker-puppeteer

Ghostery adblocker Puppeteer wrapper

MPL-2.0
Latest version published 2 months ago

Package Health Score

56 / 100
Full package analysis

Similar packages