[Solved]About strict match of element hiding rules

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
fang5566
Posts: 31
Joined: Fri Nov 24, 2006 7:04 am

[Solved]About strict match of element hiding rules

Post by fang5566 »

I have some questions about how to make strict match of element hiding rules at certain sites.

For example:

<body>
<div id="id1" class="ad01">
<div id="id2" class="ad02">
<div class="ad01">
<div id="id3" class="ad01">
</body>

I want to just hide <div class="ad01">,so I write a rule like:

Code: Select all

www.example.com##div.ad01
But it seems to hide the first,third and last divs.
than I write it like this:

Code: Select all

www.example.com##body>div+div+div.ad01
However, it still hides the third and last divs.

The question is how to just hide the third div--<div class="ad01">?
Last edited by fang5566 on Sun Mar 29, 2009 9:23 am, edited 1 time in total.
Dr. Evil
Posts: 194
Joined: Fri Sep 08, 2006 3:51 pm

Post by Dr. Evil »

fang5566
Posts: 31
Joined: Fri Nov 24, 2006 7:04 am

Post by fang5566 »

Many thanks.Both work well.
:D :D :D
Locked