nested div's

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
kornbln
Posts: 4
Joined: Fri Sep 19, 2008 12:11 am

nested div's

Post 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>
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

Sure, just use the outer one:

Code: Select all

#div(id=textlinks)
kornbln
Posts: 4
Joined: Fri Sep 19, 2008 12:11 am

Post by kornbln »

rick752 wrote:Sure, just use the outer one:

Code: Select all

#div(id=textlinks)
If I block that one, it blocks other things I dont want to block. But blocking both of them would do what I need.
User avatar
fanboy
Posts: 3446
Joined: Sun Jun 17, 2007 4:45 am
Contact:

Post by fanboy »

How about this?

Code: Select all

##div(id=textlinks) > div(class=titlebar)
User avatar
Stupid Head
Posts: 214
Joined: Sat Aug 26, 2006 8:11 pm
Location: USA

Post by Stupid Head »

Actually, the parentheses should be brackets: :)

Code: Select all

##div[id=textlinks] > div[class=titlebar]
What, me worry?
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post 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"]
kornbln
Posts: 4
Joined: Fri Sep 19, 2008 12:11 am

Post by kornbln »

where is this stuff documented? I dont see anything about it on http://adblockplus.org/en/filters
Wladimir Palant

Post 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.
User avatar
Adblock Plus Fan
Posts: 1255
Joined: Sat Feb 24, 2007 11:08 am

Re: nested div's

Post 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:
Image
Locked