Page 1 of 1
nested div's
Posted: Fri Sep 19, 2008 10:36 pm
by kornbln
Can I block both of these divs in a single rule?
Code: Select all
<div id="textlinks">
<div class="titlebar">
stuff
</div>
</div>
Posted: Sat Sep 20, 2008 1:56 am
by rick752
Sure, just use the outer one:
Posted: Sat Sep 20, 2008 7:15 am
by kornbln
rick752 wrote:Sure, just use the outer one:
If I block that one, it blocks other things I dont want to block. But blocking both of them would do what I need.
Posted: Sat Sep 20, 2008 7:51 am
by fanboy
How about this?
Code: Select all
##div(id=textlinks) > div(class=titlebar)
Posted: Sat Sep 20, 2008 12:30 pm
by Stupid Head
Actually, the parentheses should be brackets:

Code: Select all
##div[id=textlinks] > div[class=titlebar]
Posted: Sat Sep 20, 2008 2:04 pm
by rick752
Stupid Head wrote:Actually, the parentheses should be brackets:

You forget the "quotes" as well.
Code: Select all
##div[id="textlinks"] > div[class="titlebar"]
Posted: Mon Sep 22, 2008 3:34 am
by kornbln
where is this stuff documented? I dont see anything about it on
http://adblockplus.org/en/filters
Posted: Mon Sep 22, 2008 9:39 am
by Wladimir Palant
@kornbln: Here -
http://adblockplus.org/en/filters#elemhide_css
This is raw CSS so you have to follow the link to CSS selectors for the syntax.
Re: nested div's
Posted: Fri Sep 26, 2008 7:22 pm
by Adblock Plus Fan
kornbln wrote:Code: Select all
<div id="textlinks">
<div class="titlebar">
stuff
</div>
</div>
Been busy with the page source?
Rules for these things are easily composed in EHH's advanced treeview:
