Hiding table by cell content

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

I would need more 'above' code. Then it could be something like:

##[more above code] + table:first-child + table

Is there somewhere we can see this?
iggy
Posts: 4
Joined: Mon Aug 27, 2007 5:40 pm

Post by iggy »

rick752 wrote:I would need more 'above' code. Then it could be something like:

##[more above code] + table:first-child + table

Is there somewhere we can see this?
The ad is the second table only in the example I put in. It could be in any place, surrounded by the good tables. The only way to tell this is the ad is by looking inside it.
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

Then the answer is "no". The only thing you could do would be to hide both td's in your example and hope that their removal will collapse the table space.
iggy
Posts: 4
Joined: Mon Aug 27, 2007 5:40 pm

Post by iggy »

rick752 wrote:Then the answer is "no". The only thing you could do would be to hide both td's in your example and hope that their removal will collapse the table space.
I can't do even that.:( The second td of ad is indistinguishable from the second td's of good tables. And I can't select the second td as sibling because it's not, it has own tr.
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

If the first child td is specific, use:

Code: Select all

##td[class="ad"]:first-child + td
.... to remove the second child of the same tr
Locked