1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-01-03 10:31:54 +01:00

Preferences changes

Changed translations, reordered preferences and added a "disable
notifications" button to the notifications.

Fixed #24, #25 and #26
This commit is contained in:
kkapsner 2015-05-06 23:59:36 +02:00
parent b6ac2248f3
commit 233cfd1f6a
5 changed files with 47 additions and 27 deletions

Binary file not shown.

View File

@ -197,6 +197,14 @@
updateWhiteList();
workers.forEach(checkWorker);
}
},
{
label: _("disableNotifications"),
accessKey: "",
callback: function(){
prefs.showNotifications = false;
prefService.set("extensions.CanvasBlocker@kkapsner.de.showNotifications", prefs.showNotifications);
}
}
];

View File

@ -20,9 +20,10 @@ blockMode_options.block only black list= nur Einträge der Blacklist blockieren
blockMode_options.allow everything= alles erlauben
askOnlyOnce_title= Nur einmal nachfragen
askOnlyOnce_description= Wenn eine Seite öfters versucht, die <canvas>-API abzurufen, erscheint jedes mal eine Nachfrage. Mit diesem Schalter wird pro Seitenbesuch nur einmal nachgefragt. Bei manchen Seiten kann es trotzdem zu mehrmaligem Nachfragen kommen.
askOnlyOnce_description= Wenn der Blockiermodus des Canvas Blockers auf "um Erlaubnis fragen" oder "bei Auslese-API um Erlaubnis fragen" gesetzt ist, erscheint jedes mal ein Abfragedialog, wenn eine Seite versucht, die (Auslese-)API aufzurufen. Diese Einstellung versucht diese Abfrage nur einmal pro Seite anzuzeigen, unabhängig davon wie oft die API aufgerufen wird. Es können trotzudem mehrere Dialoge pro Seite erscheinen.
showNotifications_title= Benachrichtigungen anzeiten
showNotifications_description= Benachrichtigungen anzeigen, wenn der Blockiermodus auf "Auslese-API vortäuschen" gesetzt ist.
showCallingFile_title= Aufrufende Datei anzeigen
showCallingFile_description=
@ -48,6 +49,7 @@ settings = Einstellungen
displayCallingStack = Aufrufestack anzeigen
whitelistURL = erlaube URL
whitelistDomain = erlaube Domain
disableNotifications = Benachrichtigungen deaktivieren
ignorelistURL = ignoriere URL
ignorelistDomain = ignoriere Domain

View File

@ -1,11 +1,11 @@
whilteList_title= White list
whiteList_description= Domains or URLs where the <canvas>-API should not be blocked. To add multiple entries seperate them by comma.
whiteList_description= Domains or URLs where the <canvas>-API should not be blocked. To add multiple entries, separate them by commas.
blackList_title= Black list
blackList_description= Domains or URLs where the <canvas>-API should always be blocked. To add multiple entries seperate them by comma.
blackList_description= Domains or URLs where the <canvas>-API should always be blocked. To add multiple entries, separate them by commas.
ignoreList_title= Ignore list
ignoreList_description= Domains or URLs where no notifications will be shown. To add multiple entries seperate them by comma.
ignoreList_description= Domains or URLs where no notification will be shown. To add multiple entries, separate them by commas.
blockMode_title= Block mode
blockMode_description=
@ -20,9 +20,10 @@ blockMode_options.block only black list= block only black list
blockMode_options.allow everything= allow everything
askOnlyOnce_title= Ask only once
askOnlyOnce_description= If a page tries to access the <canvas>-API several times a confirm message will appear every time. This switch tries to make only one confirmation. Never the less on some pages there will be more.
askOnlyOnce_description= When Canvas Blocker's Block mode is set to 'ask permission' or 'ask permission for readout API', a confirm message will appear every time a page tries to access the API or readout API. This setting tries to display the confirm message only once for each page regardless of how many times the page tries to access the API. Nevertheless, multiple confirm messages may still be displayed on some pages.
showNotifications_title= Show notifications
showNotifications_description= Show a notification when the block mode is set to "fake readout API".
showCallingFile_title= Show calling file
showCallingFile_description=
@ -31,7 +32,7 @@ showCompleteCallingStack_title= Display complete calling stack
showCompleteCallingStack_description=
allowPDFCanvas_title= Allow canvas in PDFs
allowPDFCanvas_description= The native pdf.js uses <canvas> to display the PDF content. If this is unchecked there will lots of annoying ask dialogs or the PDF display will not work.
allowPDFCanvas_description= Firefox's native PDF reader uses the API to display PDF content. If this setting is unchecked when viewing a PDF, Canvas Blocker may display multiple ask dialogs or the PDF reader may not work at all..
askForPermission= Do you want to allow <canvas>?
askForVisiblePermission= Do you want to allow the red bordered <canvas>?
@ -49,6 +50,7 @@ displayCallingStack = display calling stack
whitelist = whitelist
whitelistURL = whitelist URL
whitelistDomain = whitelist domain
disableNotifications = disable notifications
ignorelistURL = ignore URL
ignorelistDomain = ignore domain

View File

@ -16,30 +16,12 @@
"type": "string",
"value": ""
},
{
"name": "ignoreList",
"title": "Ignore list",
"type": "string",
"value": ""
},
{
"name": "blockMode",
"title": "block mode",
"type": "menulist",
"value": "fakeReadout",
"options": [
{
"value": "blockEverything",
"label": "block everything"
},
{
"value": "allowOnlyWhiteList",
"label": "allow only white list"
},
{
"value": "ask",
"label": "ask for permission"
},
{
"value": "blockReadout",
"label": "block readout API"
@ -52,6 +34,22 @@
"value": "askReadout",
"label": "ask for readout API permission"
},
{
"value": "",
"label": ""
},
{
"value": "blockEverything",
"label": "block everything"
},
{
"value": "allowOnlyWhiteList",
"label": "allow only white list"
},
{
"value": "ask",
"label": "ask for permission"
},
{
"value": "blockOnlyBlackList",
"label": "block only black list"
@ -72,19 +70,29 @@
"name": "showNotifications",
"title": "Show notifications",
"type": "bool",
"value": true
"value": true,
"style": "border-bottom: 0px transparent none; padding-top: 0.5em;"
},
{
"name": "ignoreList",
"title": "Ignore list",
"type": "string",
"value": "",
"style": "border-top: 0px transparent none; padding-bottom: 0.5em;"
},
{
"name": "showCallingFile",
"title": "Display calling file",
"type": "bool",
"value": false
"value": false,
"style": "border-bottom: 0px transparent none; padding-top: 0.5em;"
},
{
"name": "showCompleteCallingStack",
"title": "Display complete calling stack",
"type": "bool",
"value": false
"value": false,
"style": "border-top: 0px transparent none; padding-bottom: 0.5em;"
},
{
"name": "allowPDFCanvas",