[Greasemonkey] RE: GM_xmlhttpRequest: Anyway to tell what 'url'
resolved to?
Aaron Boodman
zboogs at gmail.com
Mon Jan 9 13:44:34 EST 2006
On 1/9/06, Paul Bardo <greasemonkey at otherlies.com> wrote:
> Any better ideas?
As far as I know, no, I'm sorry. I have used the channel property on
nsIXMLHttpRequest to solve this problem before:
if (myXmlhttpRequest.channel.URI.spec != MY_URL) {
// I got redirected :-(
}
... but the raw xmlhttprequest object is not exposed by GM_xmlhttpRequest.
You could solve this for your installation of GM by modifying
xmlhttprequester.js to include this value on the details object which
is passed to event listeners. However, this won't help you if you plan
to distribute this user script to other GM users.
Sorry, if I think of anything else, I'll ping back.
- a
More information about the Greasemonkey
mailing list