News:

Create A Forum Installed

Author Topic: [Code] Adblock Detector V1  (Read 725 times)

0 Members and 1 Guest are viewing this topic.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
[Code] Adblock Detector V1
« 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/
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>
« Last Edit: September 22, 2012, 11:16:10 pm by xboi209 »
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Share on Facebook Share on Twitter


 

Related Topics

  Subject / Started by Replies Last post
12 Replies
4478 Views
Last post December 02, 2014, 06:57:57 pm
by CyanProductions
1 Replies
1339 Views
Last post March 14, 2012, 04:53:55 pm
by aIURbliS
6 Replies
971 Views
Last post March 20, 2012, 04:04:43 pm
by aIURbliS
2 Replies
903 Views
Last post August 28, 2012, 05:13:08 pm
by CreateAForum
0 Replies
870 Views
Last post September 22, 2012, 11:17:40 pm
by aIURbliS