mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 12:50:36 +01:00
Added proference to disable notifications
This commit is contained in:
parent
a2853455d0
commit
b6ac2248f3
Binary file not shown.
@ -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);
|
||||
|
@ -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=
|
||||
|
||||
|
@ -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=
|
||||
|
||||
|
@ -68,6 +68,12 @@
|
||||
"type": "bool",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"name": "showNotifications",
|
||||
"title": "Show notifications",
|
||||
"type": "bool",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"name": "showCallingFile",
|
||||
"title": "Display calling file",
|
||||
|
Loading…
x
Reference in New Issue
Block a user