Skip to content

mittmedia/just-detect-adblock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
}

About

It's FuckAdBlock with a minimalist API.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%