URL#div(name) not working for latest version

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
harvengure
Posts: 2
Joined: Sat Jul 22, 2006 12:50 pm

URL#div(name) not working for latest version

Post by harvengure »

I am trying to block a div on a site, some of you may know it... Gaia Online

Anyway, as far as I understand it, creating a filter http://www.gaiaonline.com#div(sidebar) should block the div I am trying to block but it doesnt. When I use filter #div(sidebar) it does work though.

Any insight?
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Re: URL#div(name) not working for latest version

Post by rick752 »

harvengure wrote:I am trying to block a div on a site, some of you may know it... Gaia Online

Anyway, as far as I understand it, creating a filter http://www.gaiaonline.com#div(sidebar) should block the div I am trying to block but it doesnt. When I use filter #div(sidebar) it does work though.

Any insight?
Don't use

Code: Select all

"http://"
... if you do it will just become an AD filter, not an element filter

Just use:

gaiaonline.com#div(sidebar)
harvengure
Posts: 2
Joined: Sat Jul 22, 2006 12:50 pm

Perfect!

Post by harvengure »

Ohh! Perfect, it works. Thank you so much. Now how do I manually write a block for a link?
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Re: Perfect!

Post by rick752 »

harvengure wrote:Ohh! Perfect, it works. Thank you so much. Now how do I manually write a block for a link?
site_you_are_at.com#a(href=http://full_link_to_other_site)

Edit*

In other words, if you wanted to hide my EasyList link/text at the end of my post, it would be:

adblockplus.org#a(href=http://easylist.adblockplus.org/)

... to test it, add the above string to your list ... reload the page and watch my link below disappear.

If you want the link to my site to be hidden from ALL other sites ... to ANYTHING on my site:
#a(href^=http://easylist.adblockplus.org/)


Dropping the first site part will now 'wildcard' the link from ANY site.
The "^" will hide any link that BEGINS with "http://easylist.adblockplus.org/"

Be careful how you use this hiding string.
IceDogg
Posts: 909
Joined: Fri Jun 09, 2006 11:22 pm

Post by IceDogg »

Awesome Rick thanks. Nice tips!
sheepy
Posts: 147
Joined: Sat Jun 17, 2006 8:44 pm

Post by sheepy »

Yes. My list actually have rules that hides links to doubleclick, among others, since text ads are kind of being used as separators and space fillers in my list's target audiences.
Locked