Micro library for detecting adblock presense in user browser.
Detection on server side is not supported. Please use library only on client side.
npm i adblock-detector
yarn add adblock-detector
import AdblockDetector from 'adblock-detector';
const adbDetector = new AdblockDetector()
const userHasAdblock = adbDetector.detect(); // true if user has it false if not