TLD shortcut corrector

By Matthew Flaschen Last update Oct 8, 2008 — Installed 435 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 6 posts, 4 voices



Jesse Andrews Admin

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

 
Matthew Flas... Script's Author

I added a more general exception rule.

 
Matthew Flas... Script's Author

Thank you. I actually came to warn people that it's easy to forget about the script (since it doesn't trigger often) and have strange bugs. But instead ;) I'm updating it. I added a few excludes of my own, along with news.com.com. I handled technorati by completely excluding urls with query strings (i.e question marks) because I think this is a general problem. I also made Henrik's correction. Appreciate the feedback.

 
LouCypher Scriptwright

Also

// @exclude        http://technorati.com/faves*
// @exclude        http://www.technorati.com/faves*
Testcase (requires login to Technorati account)

 
LouCypher Scriptwright

You should add http://news.com.com/ (CNET News) to @exclude list or the page will reload forever.

 
Henrik N Admin

Cool! If you use location.replace(newURL) instead of location.href = newURL, the incorrect URL will be replaced in the browser history, as opposed to leaving it in your trail.

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