Hide elements without class

Everything about using Adblock Plus on Google Chrome
Locked
rogerthat
Posts: 3
Joined: Sun Mar 18, 2018 8:57 pm

Hide elements without class

Post by rogerthat »

Hi everyone
Please help me
I have 6 div with class "column", inside each div are three tags without class and id (img, p, a).
How i can hide tag 'img' only of third div with class "column"?

Code: Select all

<div class="column">
   <img>
   <p>
   <a>
</div>
<div class="column">
   <img>
   <p>
   <a>
</div>
<div class="column">
   <img>                      (hide this tag)
   <p>
   <a>
</div>
<div class="column">
   <img>
   <p>
   <a>
</div>
<div class="column">
   <img>
   <p>
   <a>
</div>
<div class="column">
   <img>
   <p>
   <a>
</div>
Last edited by rogerthat on Sun Mar 18, 2018 9:40 pm, edited 2 times in total.
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Hide elements without class

Post by mapx »

provide a real example page indicating what do you want to block / hide
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Hide elements without class

Post by mapx »

my example:

http://axistrivia.altervista.org/_test1.html

if you want to hide the third element:

Code: Select all

axistrivia.altervista.org##.column:nth-of-type(3)
rogerthat
Posts: 3
Joined: Sun Mar 18, 2018 8:57 pm

Re: Hide elements without class

Post by rogerthat »

such structure of elements
And i need hide only tag 'img' in third div with class "column"

<div class="column">
[+] <img>
[+] <span></span>
[+] <div class="info"></div>
</div>
<div class="column">
[+] <img>
[+] <span></span>
[+] <div class="info"></div>
</div>
<div class="column">
[+] <img>
[+] <span></span>
[+] <div class="info"></div>
</div>
<div class="column">
[+] <img>
[+] <span></span>
[+] <div class="info"></div>
</div>
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Hide elements without class

Post by mapx »

I asked a real example.

However I prepared an example page with the necessary filter, you should read the posts.
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Hide elements without class

Post by mapx »

Don't open other threads.

Did you try the filter I posted above ?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Hide elements without class

Post by mapx »

try also

Code: Select all

example.com##.column:nth-of-type(3) img[src]
or

Code: Select all

example.com##.column:nth-of-type(3) img
rogerthat
Posts: 3
Joined: Sun Mar 18, 2018 8:57 pm

Re: Hide elements without class

Post by rogerthat »

it works wrong. all element hides. but i need only in third div. How i can download here image??
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Hide elements without class

Post by mapx »

Did you see the last filters ?
Did you test them ?

Again: I asked twice a real page / example, is it so difficult to answer a question ?
Locked