Skip to content

About

JavaScript function to detect the presence of an ad blocker.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

Adblock Detection Script (JavaScript)

JavaScript function to detect the presence of an ad blocker. More info in the blog post on AdGlare Ad Server.

Usage

Include the JS file, and then call the function hasAdblock().

Example

<script src='adblock-detection-script.js'></script>
<script>
  if(hasAdblock()) {
    //do something
  } else {
    //do something
  }
</script>

About

JavaScript function to detect the presence of an ad blocker.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages