Skip to content

Instantly share code, notes, and snippets.

@lushone
Created March 14, 2013 20:50
Show Gist options
  • Save lushone/5165115 to your computer and use it in GitHub Desktop.
Save lushone/5165115 to your computer and use it in GitHub Desktop.
Bypass browser ad blockers. Cripples Ad-Block Plus & Ghostery on Chrome.
$(function() {
if ($('.displayads').length && $('.displayads').height() == 0) {
alert('It seems you are blocking the ads with AdBlock or a similar tool. Please disable it and try reload the page.');
$('body').empty();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment