Skip to content

Instantly share code, notes, and snippets.

@Ventero
Created April 6, 2010 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ventero/358215 to your computer and use it in GitHub Desktop.
Save Ventero/358215 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Issue 1081
// @namespace gm
// @include *
// ==/UserScript==
var xhr = GM_xmlhttpRequest({
method: "GET",
url: "http://www.github.com"
});
try{
xhr.upload.addEventListener("progress", function(){
console.log(this, arguments);
}, false);
}catch(e){
console.log(e);
}
try{
console.log(xhr.upload.onprogress);
}catch(e){
console.log(e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment