diff --git a/canvasblocker.xpi b/canvasblocker.xpi index 72dbee3..3dbf449 100644 Binary files a/canvasblocker.xpi and b/canvasblocker.xpi differ diff --git a/lib/main.js b/lib/main.js index ce83fac..555b524 100644 --- a/lib/main.js +++ b/lib/main.js @@ -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); + } } ]; diff --git a/locale/de-DE.properties b/locale/de-DE.properties index 797b4a9..2abdeed 100644 --- a/locale/de-DE.properties +++ b/locale/de-DE.properties @@ -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 -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 \ No newline at end of file diff --git a/locale/en-US.properties b/locale/en-US.properties index dc8d165..662f3b9 100644 --- a/locale/en-US.properties +++ b/locale/en-US.properties @@ -1,11 +1,11 @@ whilteList_title= White list -whiteList_description= Domains or URLs where the -API should not be blocked. To add multiple entries seperate them by comma. +whiteList_description= Domains or URLs where the -API should not be blocked. To add multiple entries, separate them by commas. blackList_title= Black list -blackList_description= Domains or URLs where the -API should always be blocked. To add multiple entries seperate them by comma. +blackList_description= Domains or URLs where the -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 -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 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 ? askForVisiblePermission= Do you want to allow the red bordered ? @@ -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 \ No newline at end of file diff --git a/package.json b/package.json index 82c3708..03339f5 100644 --- a/package.json +++ b/package.json @@ -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",