/** * Detects if there are extensions for blocking ads * currently active in the browser. * * How to use: * $.adblockDetector.detect().done(function(adsEnabled){ * if (!adsEnabled) { * //Ads are blocked * } * }); * @version 1.0.2 */ ;(function($){ if ($.adblockDetector) { console.error('AdBlock Detector instance exists already'); return; } $.adblockDetector = { detect: function() { var dfd = new $.Deferred(); var adsEnabled = false; var $dummy = $('