I've encountered a site that uses obfuscation to disguise its image ads (namely "spiegel.de"). Here's an example of the code they're using:
Code: Select all
<div class="SaLAcBz"><abc class="eWuEFMAEsG"><a href="smz8"><img src="http://cdn2.spiegel.de/images/image-261714-hppano-r1t4-745378.jpg"></a></abc></div><div class="adition" id="content_ad_1" data-position="content_ad_1">
<script type="text/javascript">
if (typeof ADI != 'undefined') ADI.ad('content_ad_1');
</script>
</div>
However, it seems that the following element is almost always a script-based ad, which is detectable thanks to its class attribute "adition". So I was wondering if it's possible to create a filter that can remove an element that precedes an identifiable element. In the above case, the div preceding the div with class attribute "adition". In jQuery there's the prev() function of course, but I don't know what's available in Adblock to do something like that.
If you have any other suggestions as to how I could remove those pesky obfuscated ads...
Thanks in advance for your help.