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

Reenabled "whitelist URL"

Added proper escaping to the URL.

This fixes #28
This commit is contained in:
kkapsner 2015-05-11 10:55:12 +02:00
parent d1cf450ce5
commit 0a4b92508a
2 changed files with 10 additions and 10 deletions

Binary file not shown.

View File

@ -178,16 +178,16 @@
updateIgnoreList(); updateIgnoreList();
} }
}, },
// { {
// label: _("whitelistURL"), label: _("whitelistURL"),
// accessKey: "", accessKey: "",
// callback: function(){ callback: function(){
// prefs.whiteList += (prefs.whiteList? ",": "") + url; prefs.whiteList += (prefs.whiteList? ",": "") + "^" + url.replace(/([\\\+\*\?\[\^\]\$\(\)\{\}\=\!\|\.])/g, "\\$1") + "$";
// prefService.set("extensions.CanvasBlocker@kkapsner.de.whiteList", prefs.whiteList); prefService.set("extensions.CanvasBlocker@kkapsner.de.whiteList", prefs.whiteList);
// updateWhiteList(); updateWhiteList();
// workers.forEach(checkWorker); workers.forEach(checkWorker);
// } }
// }, },
{ {
label: _("whitelistDomain"), label: _("whitelistDomain"),
accessKey: "", accessKey: "",