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

Enabled whitelisting of local files

Fixes #373
This commit is contained in:
kkapsner 2019-06-25 23:22:55 +02:00
parent 7cd89dec99
commit 7037804b6f
5 changed files with 13 additions and 3 deletions

View File

@ -627,6 +627,10 @@
"message": "Für die ausgewählten APIs werden keinerlei Benachrichtigungen angezeigt.",
"description": ""
},
"localFile": {
"message": "lokale Datei",
"description": ""
},
"ignorelistDomain": {
"message": "verschweige Domain",
"description": ""

View File

@ -661,6 +661,10 @@
"message": "No notifications will be displayed for the selected APIs.",
"description": ""
},
"localFile": {
"message": "local file",
"description": ""
},
"ignorelistDomain": {
"message": "silence domain",
"description": ""

View File

@ -109,7 +109,7 @@
node.appendChild(document.createTextNode(messageParts.shift()));
while (messageParts.length){
var urlSpan = document.createElement("span");
urlSpan.textContent = this.domain;
urlSpan.textContent = this.domain || extension.getTranslation("localFile");
urlSpan.className = "url hasHiddenActions";
urlSpan.appendChild(this.actionsNode());
node.appendChild(urlSpan);

View File

@ -68,7 +68,9 @@
value: "^" + url.replace(/([\\+*?[^\]$(){}=!|.])/g, "\\$1") + "$"
};
});
choices.unshift(domain);
if (domain){
choices.unshift(domain);
}
return modalChoice(
selectText,
choices

View File

@ -3,7 +3,7 @@ Version 0.5.12:
-
new features:
-
- enabled whitelisting of local files
fixes:
- detect when browser.contextualIdentities.onRemoved is not supported