Created
August 9, 2011 15:28
-
-
Save arantius/1134362 to your computer and use it in GitHub Desktop.
Sync GM_xhr test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Sync GM_xhr test | |
// @namespace https://github.com/arantius | |
// @include http:* | |
// ==/UserScript== | |
for (var i = 1; i < 4; i++) { | |
dump('request ' + i + ' (' + (new Date().toLocaleString()) + ') ... '); | |
var req = GM_xmlhttpRequest({ | |
method: "GET", | |
url: "http://localhost/slow.php", | |
synchronous: true | |
}); | |
dump(req.status + ' ' + req.statusText +'\n'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment