Hallo,
Vieleicht kann mir jemand helfen, bin mit der Materie noch nicht so vertraut. Ich habe mir eine Chrome Extension geladen(https://github.com/ClemensBartz/Window-Name-Eraser) die ich gern im Firefox verwenden möchte. So habe ich die JavaScript aus diesem Packet:
HTML-Code:
//Prevent the website from starting
var a = window.onload;
window.onload = "";
//Remove property
var old = window.name;
window.name = "";
if (old != "" ) {
console.log("Evaluating results");
firefox.extension.sendMessage({url: document.domain, caption: old}, function(response)
{
switch (response.radio) {
case "fallback":
//White listed: bring back the property
window.name = old;
console.log("Window Name Eraser: Whitelisted domain");
break;
default:
console.log("Window Name Eraser: Blocked domain");
break;
}
//Let the website start
var getType = {};
if (a && getType.toString.call(a) == '[object Function]') {
window.onload = function () { a(); }
}
});
}
else {
//Let the website start
var getType = {};
if (a && getType.toString.call(a) == '[object Function]') {
window.onload = function () { a(); }
}
console.log("Window Name Eraser: Nothing to block here");
}
mit Online User Script Compiler (https://arantius.com/misc/greasemonk...t-compiler.php) in eine *.xpi als Addon umgewandelt. Dies funktioniert auch einwandfrei. Test Page: IP-Check – Der Windows Name ist nun Anonymisiert.
Leider kommt beim Seitenladen unter dem Firefox eine Fehlermeldung: Error: Firefox is not defined
Wie bekomme ich diese weg?
Danke für eure Hilfe
Wolfgang