I put this in a javascript file that is called in every page on my site.
I tested it with Chrome & Firefox.
var ADS_URL = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';
function checkAdsBlocked(callback) {
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState == XMLHttpRequest.DONE) {
callback(xhr.status === 0 || xhr.responseURL !== ADS_URL);
}
};
xhr.open('HEAD', ADS_URL, true);
xhr.send(null);
}
checkAdsBlocked(function(adsBlocked) {
if (adsBlocked) {alert ('\n\nPlease Disable Your Ad Blocker\nThere are no annoying ads or popups on this site.\nSome features here are not available with your ad blocker on.\nThanks!\n\n');}
});