unsafeWindow.foo();

/*
GM_xmlhttpRequest({
  method: "GET",
  url: "http://www.google.com/",
  onload: function(details) {
    alert(details.responseText);
  }
})
*/

