I have a GM_xmlhttpReqeust function setup as follows (simplified version) in my Greasemonkey script. 
  GM_xmlhttpRequest({
    synchronous: false,
    method: "HEAD",
    url: "http://www.example1.com",
    onload: function(response){console.debug(url);},
  });
- GM_xmlhttpReqeustis called in asynchronous mode in my code.
- Once accessed, - http://www.example1.comdoes a 302 redirect to- http://www.example2.com
- I would like to access the value of the original - urlparameter (- http://www.example1.com) inside- onloadcallback function.
- As per - GM_xmlhttpReqeustdocumentation,- http://www.example2.comcan be found in- response.finalUrlinside- onloadcallback.
Could someone please point me to the proper Greasemonkey/JavaScript way?
 
     
     
     
    
 
    