This project has not been maintained in 2 years. The mechanism for adblock detection used in this project is no longer functional. If you have a suggestion for a better mechanism, please send a pull request!
https://github.com/georules/adblock-detect/issues/2
This is a small script to help detect if someone is running adblock. adblocked.result will be:
test.html gives an example: http://georules.github.io/adblock-detect/test.html
<script src="https://github.com/georules/adblock-detect/raw/master/adblock-detect.js" type="text/javascript"></script>
<script>
var adblocked = window.adblocked;
adblocked.check(function(error, result) {
var output = "adblock is " + (result ? "running" : "not running");
alert(output);
});
</script>
If used, it should be compiled with another important script, as someone could simply adblock the detector script.