Quote:
Originally Posted by tbworld
Although they might target the word 'Ad' the determination to hide the block would not just rest on that trigger and would primarily be triggered by the 'content: then manipulate the DOM by either finding a block element to hide or adding a block element as needed.
|
Thanks for the response again. I'm sorry but I don't know what this means.
To show you what I am trying to do though here is my ad code that goes in the Manage Ads section of vB and is showing in the first post of a thread:
Code:
<div id="wrap">
<div class="ad">
<!--- GOOGLE AD CODE GOES HERE -->
</div>
<div id="test"></div>
</div>
What I am doing is that when the adblocker blocks the google ad, I then have some jQuery check to see if the ad class is visible or not. If the ad class is not visible (meaning adblocker has blocked the ad), I then append a css class to the div id "test". Making "test" into #test .adblocked instead.
The CSS class for .adblocked is set to display an alternate image asking the user to help support the site and disable adblock.
So <div id="test"></div> becomes <div id="test" class="adblocked"></div> when an adblocker is running.
Now this part works great, except for the fact that all this is happening inside the div id ad_thread_first_post_content. Because of the name of that div, everything inside it is being hidden by the adblocker and therefore my test div does not show up properly when an adblocker is being detected.
If I can change the name of <div id="ad_thread_first_post_content"> somehow, then I would be able to have my code work.
Thanks for your time.