Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

90
Views
how to load localhost with GM_xmlhttpRequest on Tor browser?

have a strange issue with the Tor browser and Violentmonkey,

this script:

// ==UserScript==
// @name        New script
// @namespace   Violentmonkey Scripts
// @match       https://example.org/
// @grant       GM_xmlhttpRequest
// @run-at document-end
// @version     1.0
// @author      -
// @description 4/18/2022, 4:00:43 PM
// ==/UserScript==
"use strict";
try {
    (function() {
        "use strict";
        GM_xmlhttpRequest({
            method: "GET",
            synchronous: false,
            url: "http://127.0.0.1/",
            onload: function() {
                alert("loaded!");
            },
            onerror: function(err) {
                alert("GM_xmlhttpRequest error");
                console.log(err);
            }
        });
    })();
} catch (ex) {
    alert("greasemonkey crashed! " + ex);
}

works fine on Firefox, but on Tor browser, the "onload" is never called, and the "onerror" is called with this object

{
    "finalUrl": "http://127.0.0.1/",
    "responseHeaders": "",
    "readyState": 4,
    "status": 0,
    "statusText": "",
    "response": "",
    "responseText": "",
    "lengthComputable": false,
    "loaded": 0,
    "total": 0
}

and no error in the console, and the actual http request is never sent.. and the onerror argument doesn't seem to contain any useful info about why the request failed. this happens both with "NoScript"+"HTTPS Everywhere" enabled and disabled (it makes no difference)... hence the question, how do i load localhost with GM_xmlhttpRequest on the TOR browser?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!