Detect AdBlock and show a message to users.
Works well on both most popular browser ✅
Screenshot:
Add before </head>:
<link rel="stylesheet" href="adblock-checker.css" />Add before </body>:
<script src="advertisement.js"></script>
<script src="adblock-checker.js"></script>
<script type="text/javascript">
adb_checker({
url: 'http://www.afreesms.com/adblock/disabling/', // Link to help users disable AdBlock
redirect: false, // True to redirect user to the above url
warning: {
text: 'Please disable AdBlock!', // Message to the users
button: 'Help me to disable!'
}
});
</script>If you have an ideas or want to report a bug, please contact me:
- Email: [email protected]
- Blog: http://junookyo.blogspot.com/
- Facebook: https://www.facebook.com/JunoOkyoBlog
- Twitter: https://twitter.com/juno_okyo
