Created
June 20, 2015 03:49
-
-
Save PaulBGD/38f5f2f2b76e80d1d1f0 to your computer and use it in GitHub Desktop.
Check if someone is using adblock
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
setTimeout(function() { | |
var adsbygoogle = document.getElementsByClassName('adsbygoogle'); | |
if (adsbygoogle && adsbygoogle.length > 0 && adsbygoogle[0].childNodes.length == 0) { | |
console.log('Please turn off adblock!'); | |
} | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment