Created
February 6, 2012 16:21
-
-
Save arantius/1753076 to your computer and use it in GitHub Desktop.
Test case for Greasemonkey issue #1475
This file contains hidden or 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 Test case for Greasemonkey issue #1475 | |
// @include http* | |
// ==/UserScript== | |
GM_xmlhttpRequest({ | |
method: "GET", | |
url: "https://www.google.com/", | |
onload: function(response) { | |
alert(response.responseText.substr(0, 512)); | |
}, | |
onerror: function(response) { | |
alert('error') | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment