how to disable text with exceptions

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
sallazar2

how to disable text with exceptions

Post by sallazar2 »

I have the following html pattern:

<font size="3">foo foo foo<label style=color:white;background-color:#00cc00;><b> bla bla </b></label>foo foo foo <br>

I want to hide text with foo's,so I want to see only "bla bla bla". I tried #font(size=3) but it hides all text. How can I hide foo's and show bla's? Please help.

Image
Wladimir Palant

Post by Wladimir Palant »

No, hiding an element hides all its child nodes as well - so what you ask for isn't possible.
asdf

Post by asdf »

label[style="color:white;background-color:#00cc00;"] { -moz-opacity: 0; background: white; color: white; }

label b { -moz-opacity: 1 !important; display: list-item !important; color: black; }

??
Wladimir Palant

Post by Wladimir Palant »

@asdf: That will probably make the text transparent but it will still take up the same space, and it will be selectable...

Btw, you cannot make a selector with the style attribute like this. The style attribute will have a different value once the document is loaded - "color: white; background-color: rgb(0, 204, 0);" with Firefox 3.0.1 but might change in future Firefox versions.
Locked