mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-02-23 02:49:34 +01:00
parent
23509ea827
commit
56b830c5a9
@ -115,10 +115,13 @@ header .bookmarkNotice .dontShowOptionsOnUpdate input {
|
||||
white-space: pre-wrap;
|
||||
padding-right: 5px;
|
||||
}
|
||||
input[type=""], input[type="text"], input[type="number"], select {
|
||||
input[type=""], input[type="text"], input[type="number"], select, textarea {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
*.multiple2 {
|
||||
width: 50% !important;
|
||||
}
|
||||
|
@ -67,7 +67,8 @@
|
||||
|
||||
var inputTypes = {
|
||||
number: {
|
||||
input: function(input, value){
|
||||
input: function(value){
|
||||
const input = document.createElement("input");
|
||||
input.type = "number";
|
||||
input.value = value;
|
||||
return input;
|
||||
@ -81,8 +82,16 @@
|
||||
}
|
||||
},
|
||||
string: {
|
||||
input: function(input, value){
|
||||
input.type = "text";
|
||||
input: function(value, setting){
|
||||
let input;
|
||||
if (setting && setting.display && setting.display.multiline){
|
||||
input = document.createElement("textarea");
|
||||
input.rows = 1;
|
||||
}
|
||||
else {
|
||||
input = document.createElement("input");
|
||||
input.type = "text";
|
||||
}
|
||||
input.value = value;
|
||||
return input;
|
||||
},
|
||||
@ -95,7 +104,8 @@
|
||||
}
|
||||
},
|
||||
boolean: {
|
||||
input: function(input, value){
|
||||
input: function(value){
|
||||
const input = document.createElement("input");
|
||||
input.type = "checkbox";
|
||||
input.checked = value;
|
||||
input.style.display = "inline";
|
||||
@ -120,8 +130,7 @@
|
||||
}
|
||||
else {
|
||||
if (type){
|
||||
input = document.createElement("input");
|
||||
type.input(input, setting.defaultValue);
|
||||
input = type.input(setting.defaultValue, setting);
|
||||
}
|
||||
}
|
||||
if (type){
|
||||
@ -169,8 +178,7 @@
|
||||
row.appendChild(nameCell);
|
||||
|
||||
let keyType = inputTypes[typeof setting.defaultKeyValue];
|
||||
let keyInput = document.createElement("input");
|
||||
keyType.input(keyInput, setting.defaultKeyValue);
|
||||
let keyInput = keyType.input(setting.defaultKeyValue);
|
||||
|
||||
let inputCell = document.createElement("td");
|
||||
inputCell.appendChild(keyInput);
|
||||
|
@ -144,6 +144,7 @@
|
||||
},
|
||||
{
|
||||
"name": "ignoreList",
|
||||
"multiline": true,
|
||||
"displayDependencies": [
|
||||
{
|
||||
"showNotifications": [true],
|
||||
@ -201,6 +202,7 @@
|
||||
},
|
||||
{
|
||||
"name": "stackList",
|
||||
"multiline": true,
|
||||
"displayDependencies": {
|
||||
"enableStackList": [true],
|
||||
"displayAdvancedSettings": [true]
|
||||
@ -209,6 +211,7 @@
|
||||
},
|
||||
{
|
||||
"name": "whiteList",
|
||||
"multiline": true,
|
||||
"displayDependencies": {
|
||||
"blockMode": ["fake", "block", "ask"],
|
||||
"displayAdvancedSettings": [true]
|
||||
@ -216,6 +219,7 @@
|
||||
},
|
||||
{
|
||||
"name": "sessionWhiteList",
|
||||
"multiline": true,
|
||||
"displayDependencies": {
|
||||
"blockMode": ["fake", "block", "ask"],
|
||||
"displayAdvancedSettings": [true]
|
||||
@ -223,6 +227,7 @@
|
||||
},
|
||||
{
|
||||
"name": "blackList",
|
||||
"multiline": true,
|
||||
"displayDependencies": {
|
||||
"blockMode": ["block", "fake", "ask", "allow"],
|
||||
"displayAdvancedSettings": [true]
|
||||
|
@ -6,6 +6,7 @@ Version 0.5.9:
|
||||
- added protection for navigator properties
|
||||
- added support to import older storage versions
|
||||
- protection for data URLs can now be url specific
|
||||
- changed input of lists to textarea
|
||||
|
||||
fixes:
|
||||
- search could show hidden settings
|
||||
|
Loading…
x
Reference in New Issue
Block a user