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