Created
October 24, 2013 15:12
-
-
Save pherrymason/7138999 to your computer and use it in GitHub Desktop.
Detect 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
var AdBlocker = function(){ | |
if(typeof(window.google_render_ad)=="undefined") | |
{ | |
//They're blocking ads, do something else. | |
return true; | |
} | |
else if( typeof(window.google_jobrunner)=='undefined') | |
{ | |
return true; | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment