1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 21:00:23 +01:00

Added proference to disable notifications

This commit is contained in:
kkapsner 2015-05-03 13:39:27 +02:00
parent a2853455d0
commit b6ac2248f3
5 changed files with 11 additions and 1 deletions

Binary file not shown.

View File

@ -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);

View File

@ -22,6 +22,8 @@ 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.
showNotifications_title= Benachrichtigungen anzeiten
showCallingFile_title= Aufrufende Datei anzeigen
showCallingFile_description=

View File

@ -22,6 +22,8 @@ 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.
showNotifications_title= Show notifications
showCallingFile_title= Show calling file
showCallingFile_description=

View File

@ -68,6 +68,12 @@
"type": "bool",
"value": true
},
{
"name": "showNotifications",
"title": "Show notifications",
"type": "bool",
"value": true
},
{
"name": "showCallingFile",
"title": "Display calling file",