Discussions » Development

Why in 'Tampermonkey opera' not work 'GM_xmlHttpRequest' ??? (solved)

§
Posted: 2018-11-16
Edited: 2018-11-16

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);
        }
        });
       })();
wOxxOmMod
§
Posted: 2018-11-16

Should be GM_xmlhttpRequest - it's a historical typo.

§
Posted: 2018-11-16

пиздец бля thank And what problems fix this historical typo in the descriptions?

wOxxOmMod
§
Posted: 2018-11-16

You can ask the maintainers of those descriptions.

Post reply

Sign in to post a reply.