Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 628 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 628 Bytes

just-detect-adblock

This package is strongly inspired copied from BlockAdBlock & FuckAdBlock. I just didn't liked how overly complicated the end user API was so I made this, which contains only one function to detect if an adblocker is active or not.

Installation

npm install just-detect-adblock --save

API

  • isDetected() Returns true/false if an adblocker is detected.

Exemples

Webpack

import adBlocker from 'just-detect-adblock'

if(adBlocker.isDetected()){
  // an adblocker is detected
}