georules / adblock-detect

detect if adblock is running!
http://georules.github.io/adblock-detect/test.html
MIT License
4 stars 2 forks source link

NOTE 10/31/2015 (Broken)

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

adblock-detect

This is a small script to help detect if someone is running adblock. adblocked.result will be:

example use

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>

Note for real use

If used, it should be compiled with another important script, as someone could simply adblock the detector script.

TODO

Contributing