diff --git a/canvasblocker.xpi b/canvasblocker.xpi index e2174eb..72dbee3 100644 Binary files a/canvasblocker.xpi and b/canvasblocker.xpi differ diff --git a/lib/main.js b/lib/main.js index 3186f31..ce83fac 100644 --- a/lib/main.js +++ b/lib/main.js @@ -144,7 +144,7 @@ case "fake": var contentURL = new URL(worker.contentURL); - if (!ignoreList.match(contentURL)){ + if (prefs.showNotifications && !ignoreList.match(contentURL)){ var url = contentURL.href; var domain = contentURL.hostname; var message = _("fakedReadout").replace(/\{url\}/g, url); diff --git a/locale/de-DE.properties b/locale/de-DE.properties index c664b32..797b4a9 100644 --- a/locale/de-DE.properties +++ b/locale/de-DE.properties @@ -22,6 +22,8 @@ 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. +showNotifications_title= Benachrichtigungen anzeiten + showCallingFile_title= Aufrufende Datei anzeigen showCallingFile_description= diff --git a/locale/en-US.properties b/locale/en-US.properties index 6b76dfd..dc8d165 100644 --- a/locale/en-US.properties +++ b/locale/en-US.properties @@ -22,6 +22,8 @@ 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. +showNotifications_title= Show notifications + showCallingFile_title= Show calling file showCallingFile_description= diff --git a/package.json b/package.json index 54a760c..82c3708 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,12 @@ "type": "bool", "value": true }, + { + "name": "showNotifications", + "title": "Show notifications", + "type": "bool", + "value": true + }, { "name": "showCallingFile", "title": "Display calling file",