Skip to content

carloscarucce/jquery-adblock-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Adblock Detector

To use adblock detector, simply do as follows:

<script src="jquery.adblock-detector.js"></script>
<script>
    $.adblockDetector.detect().done(function(adsEnabled){
        if (!adsEnabled) {
            //Ads are blocked
        }
    });
</script>

Important: This is a jQuery plugin. So jQuery is required.

Have fun. =)