jquery - JavaScript Adblocker detection - jsonip doesn't show -
im running script see if using adblocker.
script:
<script type="application/javascript" src="http://jsonip.appspot.com/?callback=getip"></script> <p><a style="text-decoration: none;">© example.com</a></p> <br> <div class="tester" style="display:none"><a href="http://www.namecheap.com?aff=87222"><img src="http://files.namecheap.com/graphics/linkus/728x90-1.gif" height="90" width="728" border="0" alt="namecheap"></a></div> <script> if (document.getelementbyid("tester") == undefined) { document.write('<p><a style="text-decoration: none;">#ban '); function getip(json){ document.write(json.ip); }; document.write('</a></p>'); } </script>
it shows text #ban , whitespace of course, doesnt ip. doing wrong?
Comments
Post a Comment