I am trying to rewrite the links for the NewScientist page, but am having no luck. They very cleverly run their RSS feeds through another company so it is impossible (?) to remove the ads, so I am trying to do it from the front page.
I am attempting to
1. Include only articles and no ads
2. rewrite the article urls to include only the printer friendly versions
OK, so here is what the links look like
http://www.newscientist.com/article/...cord-time.html
to
http://www.newscientist.com/article....099&print=true
and others like
http://environment.newscientist.com/...to-action.html
to
http://environment.newscientist.com/...096&print=true
I have so far written as my filters to try and take the first section up to the ".newscientist", then the article id up to the first hyphen (so "dn11096" above), and then append the "&print=true" to get the final printer version.
Here are my trial filters (that don't do the job!)
http://(.*)\.newscientist\.com/article\.ns?id=(.*)&(.*)
changing to
http://$1\.newscientist\.com/article\.ns?id=$2\&print=true
Any help would be greatly appreciated!