mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 20:16:33 +02:00
Added URL specific settings
For blockMode and showNotifications. Fixes #148.
This commit is contained in:
parent
78a0ccc243
commit
01780da9f5
10 changed files with 618 additions and 78 deletions
|
@ -10,6 +10,25 @@
|
|||
defaultValue: 1,
|
||||
options: [0, 1, 25, 50, 75, 100]
|
||||
},
|
||||
{
|
||||
name: "urlSettings",
|
||||
defaultValue: [],
|
||||
urlContainer: true,
|
||||
entries: [
|
||||
{name: "url", defaultValue: ""}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "urls",
|
||||
defaultValue: [],
|
||||
dynamic: true,
|
||||
dependencies: ["urlSettings"],
|
||||
getter: function(settings){
|
||||
return settings.urlSettings.map(function(urlSetting){
|
||||
return urlSetting.url;
|
||||
});
|
||||
}
|
||||
},
|
||||
{
|
||||
name: "whiteList",
|
||||
defaultValue: ""
|
||||
|
@ -21,6 +40,7 @@
|
|||
{
|
||||
name: "blockMode",
|
||||
defaultValue: "fakeReadout",
|
||||
urlSpecific: true,
|
||||
options: [
|
||||
"blockReadout", "fakeReadout", "fakeInput", "askReadout", null,
|
||||
"blockEverything", "block", "ask", "allow", "allowEverything"
|
||||
|
@ -84,7 +104,8 @@
|
|||
},
|
||||
{
|
||||
name: "showNotifications",
|
||||
defaultValue: true
|
||||
defaultValue: true,
|
||||
urlSpecific: true
|
||||
},
|
||||
{
|
||||
name: "storeImageForInspection",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue