adblock-detector
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

AdblockDetector

Micro library for detecting adblock presense in user browser.

Detection on server side is not supported. Please use library only on client side.

npm version package size minified

total downloads total downloads per year total downloads per week total downloads per month

Installation

Via NPM

npm i adblock-detector

Via Yarn

yarn add adblock-detector

Usage

import AdblockDetector from 'adblock-detector';

const adbDetector = new AdblockDetector()

const userHasAdblock = adbDetector.detect(); // true if user has it false if not

That's it!

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i adblock-detector

    Weekly Downloads

    2,869

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    6.22 kB

    Total Files

    5

    Last publish

    Collaborators

    • icokie