How block DIV with DIV with DIV with text=blaaaaa

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

How block DIV with DIV with DIV with text=blaaaaa

Post by mariusz.maximus »

Code: Select all

<div> <!-- this is first div-->  
  <div>
    <div> 
      blaaaaa
     </div> 
  </div>
</div>
How write block rule to block
First DIV ?
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

For nested div's.

Code: Select all

example.com##div > div > div
This should hide the one with the text.
mariusz.maximus

How block DIV with DIV with DIV with text=blaaaaa

Post by mariusz.maximus »

Thx
I love Adblock Plus :D
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

I'm sorry, I just realized you said "first" div.

Does the first divide have any specific identifier? You may have to use something just before the first div to x-path to it if it doesn't.
phunkydizco
Posts: 10
Joined: Tue Mar 25, 2008 3:20 pm

Post by phunkydizco »

How can I block a DIV with an specific text, when the position inside the first DIV changes inside a domain? I don't want to make a filter for each website off this domain.
User avatar
chewey
Posts: 501
Joined: Wed Jun 14, 2006 10:34 pm
Location: somewhere in Europe

Post by chewey »

Normal text inside an HTML element cannot be used to create a
filter rule. You need an individual property of the element to hide,
e.g. a title or class attribute.
phunkydizco
Posts: 10
Joined: Tue Mar 25, 2008 3:20 pm

Post by phunkydizco »

How can I block the Google Ad and the H1 "Anzeige" in the right sidebar with one filter for the whole side?

http://www.computerbase.de/news/hardware/2008/maerz/
http://www.computerbase.de/artikel/
http://www.computerbase.de/news/hardwar ... and_dinge/
User avatar
Hubird
Posts: 2850
Joined: Thu Oct 26, 2006 2:59 pm
Location: Australia
Contact:

Post by Hubird »

Using Rick's three subscriptions I do not see any ads.

http://easylist.adblockplus.org/

I hope that you just wanted them gone rather than knowing how to go about blocking them !!
phunkydizco
Posts: 10
Joined: Tue Mar 25, 2008 3:20 pm

Post by phunkydizco »

Blocking the Google Ad is no problem. I want to block the H1 "Anzeige" which is above the ad inside the same div. It is difficult because the div with the H1 and the ad has different positions on the three posted links. So I can't block the first or second div inside the sidebar. Can someone help?
User avatar
Hubird
Posts: 2850
Joined: Thu Oct 26, 2006 2:59 pm
Location: Australia
Contact:

Post by Hubird »

I see what you mean. I had a play around with the element hiding helper and could not hide it with out hiding the others as you mentioned.
MonztA
ABP Developer
Posts: 3957
Joined: Mon Aug 14, 2006 12:18 am
Location: Germany

Post by MonztA »

Try

Code: Select all

computerbase.de##DIV.box:last-child > H1:first-child
But this may hide other things too.
phunkydizco
Posts: 10
Joined: Tue Mar 25, 2008 3:20 pm

Post by phunkydizco »

Only works on the first side. On all others the H1 is still visible.
MonztA
ABP Developer
Posts: 3957
Joined: Mon Aug 14, 2006 12:18 am
Location: Germany

Post by MonztA »

Hm, I tried other filters but they did not work. :(
Locked