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

Hide lists

This commit is contained in:
kkapsner 2017-12-03 23:58:54 +01:00
parent 01780da9f5
commit ba8f35a9a8
3 changed files with 30 additions and 31 deletions

View File

@ -13,18 +13,18 @@
{
"name": "blockMode"
},
{
"name": "whiteList",
"displayDependencies": {
"blockMode": ["blockReadout", "fakeReadout", "fakeInput", "askReadout", "block", "ask"]
}
},
{
"name": "blackList",
"displayDependencies": {
"blockMode": ["blockReadout", "fakeReadout", "fakeInput", "askReadout", "ask", "allow"]
}
},
// {
// "name": "whiteList",
// "displayDependencies": {
// "blockMode": ["blockReadout", "fakeReadout", "fakeInput", "askReadout", "block", "ask"]
// }
// },
// {
// "name": "blackList",
// "displayDependencies": {
// "blockMode": ["blockReadout", "fakeReadout", "fakeInput", "askReadout", "ask", "allow"]
// }
// },
{
"name": "askOnlyOnce",
"displayDependencies": {
@ -199,20 +199,20 @@
}
]
},
{
"name": "ignoreList",
"displayDependencies": [
{
"blockMode": ["fakeReadout", "fakeInput"],
"showNotifications": [true]
},
{
"blockMode": ["askReadout", "ask"],
"askDenyMode": ["fake"],
"showNotifications": [true]
}
]
},
// {
// "name": "ignoreList",
// "displayDependencies": [
// {
// "blockMode": ["fakeReadout", "fakeInput"],
// "showNotifications": [true]
// },
// {
// "blockMode": ["askReadout", "ask"],
// "askDenyMode": ["fake"],
// "showNotifications": [true]
// }
// ]
// },
{
"name": "showCallingFile",
"displayDependencies": {

View File

@ -5,7 +5,6 @@
"use strict";
const settings = require("./settings");
const lists = require("./lists");
const {parseErrorStack} = require("./callingStack");
const {error, warning, message, notice, verbose, setPrefix: setLogPrefix} = require("./logging");
setLogPrefix("page action script");
@ -55,7 +54,7 @@
domain
).then(function(domain){
if (domain){
lists.appendTo("ignore", domain);
settings.set("showNotifications", false, domain);
}
window.close();
});
@ -70,7 +69,7 @@
domain
).then(function(domain){
if (domain){
lists.appendTo("white", domain);
settings.set("blockMode", "allow", domain);
}
window.close();
});
@ -105,7 +104,7 @@
"^" + url.href.replace(/([\\+*?[^\]$(){}=!|.])/g, "\\$1") + "$"
).then(function(url){
if (url){
lists.appendTo("white", url);
settings.set("blockMode", "allow", url);
}
window.close();
});

View File

@ -3,7 +3,7 @@ Version 0.4.3:
-
changes:
-
- hide white, black and ignore list as they can be done with the url specific settings. They are still present and working in the background.
new features:
- reset settings