Last active
April 29, 2016 15:39
-
-
Save jonnymaceachern/06d4c5067f6e1d8c8728f189c947cd4e to your computer and use it in GitHub Desktop.
Adblock checker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hasAdblock = false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment