mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 10:31:54 +01:00
Added translations
This commit is contained in:
parent
f0e3a6a874
commit
8524301655
19
lib/main.js
19
lib/main.js
@ -198,18 +198,7 @@
|
||||
var contentURL = new URL(worker.contentURL);
|
||||
var url = contentURL.href;
|
||||
var domain = contentURL.hostname;
|
||||
var message = "Faked readout on " + url;
|
||||
|
||||
// log(" worker.tab", worker.tab);
|
||||
// log(" windowUtils", windowUtils);
|
||||
// log(" ", windowUtils.windows("navigator:browser", {includePrivate: true})[0][0]);
|
||||
// log(" ", windowUtils.windows("navigator:browser", {includePrivate: true})[0][1]);
|
||||
// log(" ", windowUtils.windows("navigator:browser", {includePrivate: true})[0][2]);
|
||||
// log(" tabs", tabUtils.getTabs());
|
||||
// console.log(worker.tab.id);
|
||||
// for each (let tab in tabUtils.getTabs()){
|
||||
// console.log(tabUtils.getTabId(tab));
|
||||
// }
|
||||
var message = _("fakedReadout").replace(/\{url\}/g, url);
|
||||
|
||||
var tab = tabUtils.getTabForId(worker.tab.id);
|
||||
var tabBrowser = tabUtils.getTabBrowserForTab(tab);
|
||||
@ -219,7 +208,7 @@
|
||||
// var notifyBox = ownerBrowser.gBrowser.getNotificationBox();
|
||||
var notifyBox = tabBrowser.getNotificationBox();
|
||||
// log(" chrome window", require("sdk/windows").browserWindows);
|
||||
// var notifyBox = windowUtils.getXULWindow(browser.contentWindow).XULBrowserWindow.getNotificationBox(windowUtils.getDOMWindow(browser.contentWindow));
|
||||
// var notifyBox = windowUtils.getXULWindow(browser.contentWindow).XULBrowserWindow.getNotificationBox(browser.contentWindow);
|
||||
var notification = notifyBox.getNotificationWithValue("fake-readout");
|
||||
if (notification){
|
||||
notification.label = message;
|
||||
@ -227,7 +216,7 @@
|
||||
else {
|
||||
var buttons = [
|
||||
{
|
||||
label: "whitelist URL",
|
||||
label: _("whitelistURL"),
|
||||
accessKey: "",
|
||||
callback: function(){
|
||||
prefs.whiteList += "," + url;
|
||||
@ -237,7 +226,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
label: "whitelist domain",
|
||||
label: _("whitelistDomain"),
|
||||
accessKey: "",
|
||||
callback: function(){
|
||||
prefs.whiteList += "," + domain;
|
||||
|
@ -37,3 +37,9 @@ askForInvisibleReadoutPermission= Wollen Sie das Auslesen von unsichtbaren <canv
|
||||
|
||||
sourceOutput= Aufrufende Datei
|
||||
stackEntryOutput= {url} Zeile {line} Spalte {column}
|
||||
|
||||
fakedReadout = Auslese vorgetäuscht auf {url}
|
||||
settings = Einstellungen
|
||||
displayCallingStack = Aufrufestack anzeigen
|
||||
whitelistURL = erlaube URL
|
||||
whitelistDomain = erlaube Domain
|
@ -37,3 +37,10 @@ askForInvisibleReadoutPermission= Do you want to allow invisible <canvas> readou
|
||||
|
||||
sourceOutput= Calling file
|
||||
stackEntryOutput= {url} line {line} column {column}
|
||||
|
||||
fakedReadout = Faked readout on {url}
|
||||
settings = settings
|
||||
displayCallingStack = display calling stack
|
||||
whitelist = whitelist
|
||||
whitelistURL = whitelist URL
|
||||
whitelistDomain = whitelist domain
|
Loading…
x
Reference in New Issue
Block a user