What I want to do is detect Adblock plus without using a JavaScript file or jQuery. Most of the adblock plus detect scripts they use a file, example "show_ads.js" that is hosted on there own domain with a line it in to set it "adblock = false;"
The problem with using a JavaScript file, users can white list that JavaScript file and it will no longer detect it. What I'm looking for is a JavaScript that loads directly into the HTML that would detect if someone is using ad blocker without the use of a file MyColes.
Example Below:
Code: Select all
<script type="text/javascript">
// line of code that detects if using ad blocker
if so display message
</script>
Any suggestions and Examples will be greatly appreciated.