adblock-detector
adblock-detector copied to clipboard
JavaScript library that allows to detect if user has any Adblock browser extension enabled
AdblockDetector
Micro library for detecting adblock presense in user browser.
Detection on server side is not supported. Please use library only on client side.
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