hide <h1>advert</h1> but not <h1>title<

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
dersven
Posts: 4
Joined: Tue Nov 13, 2007 5:00 pm

hide <h1>advert</h1> but not <h1>title<

Post by dersven »

HI!
i think the title says everything. i want to hide <h1>-Tags that contain "advert". the tag itself has no id,... and no defined position in the source code.
is there an attribute like "value",...?

Code: Select all

#h1(value=advert)
did not work.

thanks for your help.
User avatar
chewey
Posts: 501
Joined: Wed Jun 14, 2006 10:34 pm
Location: somewhere in Europe

Re: hide <h1>advert</h1> but not <h1>title

Post by chewey »

That's not possible using ABP.

Element hiding rules can only match attributes of elements, not content they enclose:

Code: Select all

<h1 this=is_an_attribute> content goes here </h1>
Wladimir Palant

Post by Wladimir Palant »

Element hiding can only look at parents of an element, not at its children. That's a limitation of CSS, and element hiding is built on it.
Locked