Emulate GM_xmlhttpRequest.