Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
mariusz.maximus
Post
by mariusz.maximus » Fri Oct 19, 2007 2:55 pm
Code: Select all
<div> <!-- this is first div-->
<div>
<div>
blaaaaa
</div>
</div>
</div>
How write block rule to block
First DIV ?
rick752
Posts: 2709 Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:
Post
by rick752 » Fri Oct 19, 2007 3:12 pm
For nested div's.
This should hide the one with the text.
mariusz.maximus
Post
by mariusz.maximus » Fri Oct 19, 2007 3:27 pm
Thx
I love Adblock Plus
rick752
Posts: 2709 Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:
Post
by rick752 » Sat Oct 20, 2007 1:29 am
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 » Tue Mar 25, 2008 3:25 pm
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.
chewey
Posts: 501 Joined: Wed Jun 14, 2006 10:34 pm
Location: somewhere in Europe
Post
by chewey » Tue Mar 25, 2008 8:02 pm
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.
Hubird
Posts: 2850 Joined: Thu Oct 26, 2006 2:59 pm
Location: Australia
Contact:
Post
by Hubird » Wed Mar 26, 2008 9:38 am
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 » Wed Mar 26, 2008 9:46 am
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?
Hubird
Posts: 2850 Joined: Thu Oct 26, 2006 2:59 pm
Location: Australia
Contact:
Post
by Hubird » Wed Mar 26, 2008 10:03 am
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 » Wed Mar 26, 2008 3:42 pm
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 » Wed Mar 26, 2008 3:48 pm
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 » Wed Mar 26, 2008 3:58 pm
Hm, I tried other filters but they did not work.