The Adblock Project Forum Index The Adblock Project
Pull up a seat ...stay a while.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Link Blocking: How To

 
Post new topic   Reply to topic    The Adblock Project Forum Index -> Main
View previous topic :: View next topic  
Author Message
agrohe



Joined: 02 Jun 2005
Posts: 4

PostPosted: Thu Jun 02, 2005    Post subject: Link Blocking: How To Reply with quote

I would like to block individual links based on the where the link me.

For instance, if the HTML says. "Hey click here" and the link has *adserver* in the link URL, then I do not want to see the "Hey click here" HTML.

I have searched this forum and have not found an answer that works. Someone suggested that I try the "Check Parent Links" option, but that has not worked for me
Back to top
View user's profile Send private message
itr



Joined: 06 Feb 2005
Posts: 57

PostPosted: Thu Jun 02, 2005    Post subject: Reply with quote

Simply turn on "check parent links" and add a rule for *adserver*
Back to top
View user's profile Send private message
agrohe



Joined: 02 Jun 2005
Posts: 4

PostPosted: Fri Jun 03, 2005    Post subject: I tried this, but it does not seem to work? Reply with quote

Maybe I have an old build, or is this a bug?

Build v.5 d2 Nightly 39
Back to top
View user's profile Send private message
kstahl
Support


Joined: 02 Jan 2004
Posts: 1202
Location: Stockholm, Sweden

PostPosted: Fri Jun 03, 2005    Post subject: Reply with quote

It doesn't work for text links, of course. Adblock can only block remotely loaded content.
_________________
Adblock 0.5.3.042
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.Cool Gecko/20051111 Firefox/1.5
Back to top
View user's profile Send private message
agrohe



Joined: 02 Jun 2005
Posts: 4

PostPosted: Fri Jun 03, 2005    Post subject: Reply with quote

So this is just a limitation of the extention? If so, is anyone aware of another extention that will take care of this?

I have tried RIP and GreaseMonkey. Not being familiar with regex, I cannot figure out the advanced capabilities of these extentions.
Back to top
View user's profile Send private message
AmirG



Joined: 26 Mar 2005
Posts: 119

PostPosted: Fri Jun 03, 2005    Post subject: Reply with quote

Both RIP anf Greasemonkey can do this. RIP doesn't use RegEx and Greasemonkey can do without it as well.

Can't really help you with Greasemonkey, but you can easyly do this with RIP: just create a RIP for the URL http://* with the XPath //a[contains(@href,'adserver')]. You could get false-positives with that, i.e. "downloadserver", so it might be better to use //a[contains(@href,'.adserver') or contains(@href,'/adserver') or contains(@href,'&adserver')] instead.
Back to top
View user's profile Send private message
agrohe



Joined: 02 Jun 2005
Posts: 4

PostPosted: Fri Jun 03, 2005    Post subject: Solution Reply with quote

That seemed to work in RIP.

The problem is that RIP uses the site in the URL. i.e. I was using the www.bloglines.com URL, but the link was actually under another site.

So when I added a new RIP with HTTPL://*, the link disappeared.
Back to top
View user's profile Send private message
BeLeBo k



Joined: 03 Jun 2005
Posts: 4

PostPosted: Fri Jun 03, 2005    Post subject: Reply with quote

AmirG wrote:
Can't really help you with Greasemonkey,

I can help you help yourself: http://platypus.mozdev.org Gives you the point and click simplicity of RIP to generate user scripts for GreaseMonkey Smile I have noticed however that XPaths from Platypus sometimes don't work in RIP. Not being either a JS or XML expert I cannot offer an opinion why.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    The Adblock Project Forum Index -> Main All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group