Skip to content

Instantly share code, notes, and snippets.

@pherrymason
Created October 24, 2013 15:12
Show Gist options
  • Save pherrymason/7138999 to your computer and use it in GitHub Desktop.
Save pherrymason/7138999 to your computer and use it in GitHub Desktop.
Detect ADblock
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