Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Check if browser uses an adblocker
window.usesNoAdBlocker = true;
<!doctype html>
<script type="text/javascript" src="advertisement.js"></script>
if("usesNoAdBlocker" in window) {
alert("Cool. You are supporting this site :)");
else {
alert("Would be realy great if you could support this website.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment