Create A Forum - Support Forums

Support => Create a Forum Codes and Support => Topic started by: aIURbliS on September 16, 2012, 09:02:42 pm

Title: [Code] Adblock Detector V1
Post by: aIURbliS on September 16, 2012, 09:02:42 pm
Detects if an adblocker is blocking ads on the page and displays a message




This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/ (http://support.createaforum.com/5/jquery-v1-8-update/)
Footers:
Code: [Select]
<script>if($("div[align='center'] > img").length < 1){$("#header").after("<center><b><p style='font-size:20px'>If you can read this, please disable adblock!</p></b></center>");}</script>