Skip to content

Instantly share code, notes, and snippets.

@arantius
Created February 6, 2012 16:21
Show Gist options
  • Save arantius/1753076 to your computer and use it in GitHub Desktop.
Save arantius/1753076 to your computer and use it in GitHub Desktop.
Test case for Greasemonkey issue #1475
// ==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