[Greasemonkey] Is there any way to remove all redirects from each link in a page?

js ebgssth at gmail.com
Thu Jan 4 08:05:47 PST 2007


Hi gurus,

I'd like to replace all redirects with its destination URLs.
First I  thought I could use GM_xmlhttp's callback to get the
destination address
but GM_xmlhttp is so high level function that it never returns 302.
(GM_xmlhttpRequest automatically handle all redirects and follows
moved URL accordingly)


I searched on the web but there's no clue.
I found a remove redirects here
http://www.squarefree.com/bookmarklets/pagelinks.html
but it doesn't work if the URL is not like
http://example.com/redir.cgi?to=http://example.net/

Any suggestions would be appreciated.

Thanks in advance.


More information about the Greasemonkey mailing list