Created
June 27, 2016 17:45
-
-
Save diegoarigony/a2ca4129d5461d1971119edfe02270a6 to your computer and use it in GitHub Desktop.
Detect AdBlock
This file contains hidden or 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
<script> | |
window.adblock = true; | |
if( window.adblock ) { | |
alert('adblock ativo'); | |
} else { | |
alert('adblock inativo'); | |
} | |
</script> |
This file contains hidden or 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
window.adblock = false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment