Skip to content

Instantly share code, notes, and snippets.

@erikvold
Created March 22, 2010 14:11
Show Gist options
  • Save erikvold/340106 to your computer and use it in GitHub Desktop.
Save erikvold/340106 to your computer and use it in GitHub Desktop.
This userscript is meant to be a test for WM ticket 19
// ==UserScript==
// @name WM ticket 19 test case
// @namespace wmTest
// @include *
// @match *
// @datecreated 2010-03-22
// @lastupdated 2010-03-22
// @version 0.1
// @author Erik Vergobbi Vold
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// @description This userscript is meant to be a test for WM ticket 19
// ==/UserScript==
GM_xmlhttpRequest({
method: "GET",
url: "http://www.google.com/",
headers: {
'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
'Accept': 'application/atom+xml,application/xml,text/xml',
},
onload: function(responseDetails) {
alert(GM_getValue("whatever"));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment