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>
This Codes is added to page_container_js_body at last
And here´s the js script it´s using
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