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. =)