Reuters Single Page View

By Philip Hughes Last update Aug 20, 2009 — Installed 1,659 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 5 posts, 5 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Matthew Flas... Scriptwright

Can you update the script so it works on subdomains of reuters? Change the include to:

*reuters.com*

and the href check to:

if(hrefs[i].href.match(/\/article\//) && hrefs[i].host.indexOf('reuters.com') != -1)

As another note, I enabled it to run on news.google.com, because that's where I generally start my news browsing. If you do something similar, it may eliminate reloads.

 
Scott Severance User

Is there any way I can get an older version? The version I had on my (now dead) laptop worked by rewriting links, instead of messing with the current URL.

This is a big deal, because the script doesn't run until the page has loaded (presumably it is triggered by the onload event). That means that after I'm halfway through reading the article, the page suddenly refreshes. With my satellite Internet connection, I can often read about half of an article before the page finishes loading.

In short, rewriting links is good; rewriting location.href is bad.

 
scherre User

thanks for this script, it drives me crazy having the articles spread across several pages.

 
bobielawlintine Scriptwright

Thanks, I use your script to avoid the annoyance. I made one small modification. I often get to Reuters article pages from RSS links. Since Reuters already attaches a query string indicating you're coming from a feed, your script doesn't work there. I just added an if...else inside your first if statement adding &sp=true when there's already a query string and ?sp=true otherwise.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel