讨论 » 开发
Why in 'Tampermonkey opera' not work 'GM_xmlHttpRequest' ??? (solved)
failed! GM_xmlHttpRequest is not defined :#
// ==UserScript== // @name JS_ebay_1 Инфа в буфер по Ctrl+Shift+Enter // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match www.ebay.com/* // @grant GM_xmlHttpRequest // ==/UserScript== ( function(){ GM_xmlHttpRequest( { method: "GET", url: "http://www.cbr.ru/scripts/XML_daily.asp", onload: function(response) { var responseXML = null; // Inject responseXML into existing Object (only appropriate for XML content). if (!response.responseXML) { responseXML = new DOMParser().parseFromString(response, "text/xml");} alert(responseXML); } }); })();
Should be GM_xmlhttpRequest - it's a historical typo.
GM_xmlhttpRequest
пиздец бля thank And what problems fix this historical typo in the descriptions?
You can ask the maintainers of those descriptions.
登录以发布留言。
Why in 'Tampermonkey opera' not work 'GM_xmlHttpRequest' ??? (solved)
failed! GM_xmlHttpRequest is not defined :#