Skip to content

Instantly share code, notes, and snippets.

@jonnymaceachern
Last active April 29, 2016 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonnymaceachern/06d4c5067f6e1d8c8728f189c947cd4e to your computer and use it in GitHub Desktop.
Save jonnymaceachern/06d4c5067f6e1d8c8728f189c947cd4e to your computer and use it in GitHub Desktop.
Adblock checker
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Adblock checker</title>
</head>
<body>
<p>Is using blocker: <span id="result"></span></p>
<script>
var hasAdblock = true;
</script>
<script type="text/javascript" src="adframe.js"></script>
<script>
document.getElementById('result').innerHTML = hasAdblock;
</script>
</body>
</html>
hasAdblock = false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment