Skip to content

internet-research-labs/ad-blocker-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ad Blocker Detector

Non-clever ad blocker detection. Gives a full report on what types of ads are not showing up.

Install

bower install ad-blocker-detector

Usage

3 event handlers:

var adBlockerDetector = new AdBlockerDetector();

// Triggers when ready to run tests
adBlockerDetector.ready(function () {
  console.log('Running tests');
});

// Triggers when an ad blocker is detected
adBlockerDetector.yes(function (which_test, report) {
  console.log('AdBlocker Detected');
});

// Triggers when an ad blocker is not found and all the tests have finished running
adBlockerDetector.no(function (which_test, report) {
  console.log('AdBlocker Not Detected');
});

UNLICENSE

Do not license cute ideas.

About

Event-based handler for detecting types of Ad-Blockers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published