View previous topic :: View next topic |
Author |
Message |
agrohe
Joined: 02 Jun 2005 Posts: 4
|
Posted: Thu Jun 02, 2005 Post subject: Link Blocking: How To |
|
|
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 |
|
 |
itr
Joined: 06 Feb 2005 Posts: 57
|
Posted: Thu Jun 02, 2005 Post subject: |
|
|
Simply turn on "check parent links" and add a rule for *adserver* |
|
Back to top |
|
 |
agrohe
Joined: 02 Jun 2005 Posts: 4
|
Posted: Fri Jun 03, 2005 Post subject: I tried this, but it does not seem to work? |
|
|
Maybe I have an old build, or is this a bug?
Build v.5 d2 Nightly 39 |
|
Back to top |
|
 |
kstahl Support
Joined: 02 Jan 2004 Posts: 1202 Location: Stockholm, Sweden
|
Posted: Fri Jun 03, 2005 Post subject: |
|
|
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. Gecko/20051111 Firefox/1.5 |
|
Back to top |
|
 |
agrohe
Joined: 02 Jun 2005 Posts: 4
|
Posted: Fri Jun 03, 2005 Post subject: |
|
|
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 |
|
 |
AmirG
Joined: 26 Mar 2005 Posts: 119
|
Posted: Fri Jun 03, 2005 Post subject: |
|
|
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 |
|
 |
agrohe
Joined: 02 Jun 2005 Posts: 4
|
Posted: Fri Jun 03, 2005 Post subject: Solution |
|
|
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 |
|
 |
BeLeBo k
Joined: 03 Jun 2005 Posts: 4
|
Posted: Fri Jun 03, 2005 Post subject: |
|
|
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 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 |
|
 |
|