Anti Adblocker js problem

  • Thread starter Thread starter bogus
  • Start date Start date
B

bogus

Guest
I am using an Anti Adblock Script i have already used on my old vB.
Its an alert Box that pops up if some has Adblock plus in Firefox activated.
The problem that appears now is, if i integrate this script and deactive Adblock for my side i cant edit Threads and cannot watch attachments anymore.
I have no idea what this causes and hope that anybody around here with a better js knowledge then mine can help me getting this fixed.

This part is implemented into the footer right after the last </div>
Code:
<script type="text/javascript">
    function DisableAdBlock() {
        if ($('.AdSense').height() == 0)
            alert("Your AdBlocker threatens the existence of brainlag.\nWith every click on a banner ad you support us..\nPlease disable your blocker to help brainlag.\nClick OK to load the page");
    }
    $(DisableAdBlock);
</script>

This Codes is added to page_container_js_body at last
Code:
<script type="text/javascript" src="js/adblock/antiadblock.js"></script>

And here´s the js script it´s using
 

Attachments

As if i knew it.... my post did not wanted the suggestion what will be or not.
This post is looking for help.
ragtek. Ich hab um Hilfe gebeten, nicht das Du mir deine Weisheiten überlässt.
 
Top Bottom