mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 10:31:54 +01:00
Removed bug with "add to ignore list"-button & added translations for prompts.
Fixes #41.
This commit is contained in:
parent
0f575a7aed
commit
6c806583f0
Binary file not shown.
@ -51,7 +51,7 @@ function getDomainRegExpList(domainList){
|
|||||||
|
|
||||||
var lists = {
|
var lists = {
|
||||||
white: [],
|
white: [],
|
||||||
ignore: [],
|
"ignore": [],
|
||||||
black: []
|
black: []
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ exports.appendTo = function appendToList(type, entry){
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
prefs[type + "List"] += (prefs[type + "List"]? ",": "") + entry;
|
prefs[type + "List"] += (prefs[type + "List"]? ",": "") + entry;
|
||||||
prefService.set("extensions.CanvasBlocker@kkapsner.de.whiteList", prefs[type + "List"]);
|
prefService.set("extensions.CanvasBlocker@kkapsner.de." + type + "List", prefs[type + "List"]);
|
||||||
updateList(type);
|
updateList(type);
|
||||||
};
|
};
|
||||||
exports.update = updateList;
|
exports.update = updateList;
|
@ -56,7 +56,7 @@ exports.notify = function(window, callingStackMsg){
|
|||||||
accessKey: "",
|
accessKey: "",
|
||||||
callback: function(){
|
callback: function(){
|
||||||
var domain = browser.contentWindow.prompt(
|
var domain = browser.contentWindow.prompt(
|
||||||
"Input domain to add to ignore list:",
|
_("inputIgnoreDomain"),
|
||||||
notification.domain
|
notification.domain
|
||||||
);
|
);
|
||||||
if (domain){
|
if (domain){
|
||||||
@ -69,7 +69,7 @@ exports.notify = function(window, callingStackMsg){
|
|||||||
accessKey: "",
|
accessKey: "",
|
||||||
callback: function(){
|
callback: function(){
|
||||||
var url = browser.contentWindow.prompt(
|
var url = browser.contentWindow.prompt(
|
||||||
"Input URL RegExp to add to white list:",
|
_("inputWhitelistDomain"),
|
||||||
"^" + notification.url.replace(/([\\\+\*\?\[\^\]\$\(\)\{\}\=\!\|\.])/g, "\\$1") + "$"
|
"^" + notification.url.replace(/([\\\+\*\?\[\^\]\$\(\)\{\}\=\!\|\.])/g, "\\$1") + "$"
|
||||||
);
|
);
|
||||||
if (url){
|
if (url){
|
||||||
@ -82,7 +82,7 @@ exports.notify = function(window, callingStackMsg){
|
|||||||
accessKey: "",
|
accessKey: "",
|
||||||
callback: function(){
|
callback: function(){
|
||||||
var domain = browser.contentWindow.prompt(
|
var domain = browser.contentWindow.prompt(
|
||||||
"Input domain to add to white list:",
|
_("inputWhitelistURL"),
|
||||||
notification.domain
|
notification.domain
|
||||||
);
|
);
|
||||||
if (domain){
|
if (domain){
|
||||||
|
@ -53,4 +53,8 @@ whitelistDomain = erlaube Domain
|
|||||||
disableNotifications = Benachrichtigungen deaktivieren
|
disableNotifications = Benachrichtigungen deaktivieren
|
||||||
|
|
||||||
ignorelistURL = ignoriere URL
|
ignorelistURL = ignoriere URL
|
||||||
ignorelistDomain = ignoriere Domain
|
ignorelistDomain = ignoriere Domain
|
||||||
|
|
||||||
|
inputIgnoreDomain = Geben Sie die Domain ein, die ignoriert werden soll:
|
||||||
|
inputWhitelistDomain = Geben Sie die URL RegExp ein, die erlaubt werden soll:
|
||||||
|
inputWhitelistURL = Geben Sie die Domain ein, die erlaubt werden soll:
|
@ -54,4 +54,8 @@ whitelistDomain = whitelist domain
|
|||||||
disableNotifications = disable notifications
|
disableNotifications = disable notifications
|
||||||
|
|
||||||
ignorelistURL = ignore URL
|
ignorelistURL = ignore URL
|
||||||
ignorelistDomain = ignore domain
|
ignorelistDomain = ignore domain
|
||||||
|
|
||||||
|
inputIgnoreDomain = Input domain to add to ignore list:
|
||||||
|
inputWhitelistDomain = Input URL RegExp to add to white list:
|
||||||
|
inputWhitelistURL = Input domain to add to white list:
|
Loading…
x
Reference in New Issue
Block a user