1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-11-13 08:38:53 +01:00
CanvasBlocker/options/settingsDisplay.js

550 lines
10 KiB
JavaScript
Raw Normal View History

2017-11-07 00:36:44 +01:00
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
2018-08-22 22:16:49 +02:00
/* eslint max-lines: off*/
2017-11-07 00:36:44 +01:00
(function(){
"use strict";
var settingsDisplay = [
{
"name": "displayAdvancedSettings"
},
2017-11-11 23:34:59 +01:00
{
"name": "displayDescriptions"
},
2017-11-07 00:36:44 +01:00
{
"name": "blockMode"
},
2017-12-24 21:52:44 +01:00
"asking",
2017-11-07 00:36:44 +01:00
{
"name": "askOnlyOnce",
2017-11-07 00:36:44 +01:00
"displayDependencies": {
"blockMode": ["ask"]
2017-11-07 00:36:44 +01:00
}
},
{
"name": "askDenyMode",
2017-11-07 00:36:44 +01:00
"displayDependencies": {
"blockMode": ["ask"],
2017-11-07 00:36:44 +01:00
"displayAdvancedSettings": [true]
}
},
2018-01-04 13:36:18 +01:00
{
"name": "showCanvasWhileAsking",
"displayDependencies": {
"blockMode": ["ask"],
2018-01-04 13:36:18 +01:00
"displayAdvancedSettings": [true]
}
},
2017-12-24 21:52:44 +01:00
"faking",
2017-11-07 00:36:44 +01:00
{
"name": "rng",
"displayDependencies": [
{
"blockMode": ["fake"],
"displayAdvancedSettings": [true]
},
{
"blockMode": ["ask"],
"askDenyMode": ["fake"],
"displayAdvancedSettings": [true]
}
]
2017-11-07 00:36:44 +01:00
},
{
"name": "storePersistentRnd",
"displayDependencies": [
{
"blockMode": ["fake"],
"rng": ["persistent"],
"displayAdvancedSettings": [true]
},
{
"blockMode": ["ask"],
"askDenyMode": ["fake"],
"rng": ["persistent"],
"displayAdvancedSettings": [true]
}
]
2017-11-07 00:36:44 +01:00
},
{
"name": "persistentRndClearInterval",
"inputs": ["persistentRndClearIntervalValue", "persistentRndClearIntervalUnit"],
"displayDependencies": [
{
"blockMode": ["fake"],
"rng": ["persistent"],
"displayAdvancedSettings": [true]
},
{
"blockMode": ["ask"],
"askDenyMode": ["fake"],
"rng": ["persistent"],
"displayAdvancedSettings": [true]
}
]
},
2017-11-07 00:36:44 +01:00
{
"name": "clearPersistentRnd",
"displayDependencies": [
{
"blockMode": ["fake"],
"rng": ["persistent"],
"displayAdvancedSettings": [true]
},
{
"blockMode": ["ask"],
"askDenyMode": ["fake"],
"rng": ["persistent"],
"displayAdvancedSettings": [true]
}
]
},
{
"name": "sharePersistentRndBetweenDomains",
"displayDependencies": [
{
"blockMode": ["fake"],
"rng": ["persistent"],
"displayAdvancedSettings": [true]
},
{
"blockMode": ["ask"],
"askDenyMode": ["fake"],
"rng": ["persistent"],
"displayAdvancedSettings": [true]
}
]
2017-11-07 00:36:44 +01:00
},
2017-12-24 21:52:44 +01:00
"notifications",
2017-11-07 00:36:44 +01:00
{
"name": "showNotifications"
2017-11-07 00:36:44 +01:00
},
{
"name": "highlightPageAction",
"displayDependencies": [
{
"showNotifications": [true]
}
]
},
2018-08-21 22:43:41 +02:00
{
"name": "displayBadge"
},
{
"name": "highlightBrowserAction"
},
{
"name": "storeNotificationData",
"displayDependencies": [
{
"showNotifications": [true],
"displayAdvancedSettings": [true]
}
]
},
{
"name": "ignoreList",
"displayDependencies": [
{
"showNotifications": [true],
"displayAdvancedSettings": [true]
},
{
"displayBadge": [true],
"displayAdvancedSettings": [true]
},
{
"highlightBrowserAction": ["color", "blink"],
"displayAdvancedSettings": [true]
}
]
},
{
"name": "ignoredAPIs",
"displayDependencies": [
{
"showNotifications": [true],
"displayAdvancedSettings": [true]
},
{
"displayBadge": [true],
"displayAdvancedSettings": [true]
},
{
"highlightBrowserAction": ["color", "blink"],
"displayAdvancedSettings": [true]
}
]
},
2017-11-07 00:36:44 +01:00
{
"name": "showCallingFile",
"displayDependencies": {
"blockMode": ["ask"],
2017-11-07 00:36:44 +01:00
"displayAdvancedSettings": [true]
}
},
{
"name": "showCompleteCallingStack",
"displayDependencies": [
{
"displayAdvancedSettings": [true]
}
]
},
2017-12-24 21:52:44 +01:00
"lists",
2017-11-07 00:36:44 +01:00
{
"name": "enableStackList",
"displayDependencies": {
"blockMode": ["fake", "block", "ask"],
2017-11-07 00:36:44 +01:00
"displayAdvancedSettings": [true]
}
},
{
"name": "stackList",
"displayDependencies": {
"enableStackList": [true],
"displayAdvancedSettings": [true]
}
},
2017-12-24 21:52:44 +01:00
{
"name": "whiteList",
"displayDependencies": {
"blockMode": ["fake", "block", "ask"],
2017-12-24 21:52:44 +01:00
"displayAdvancedSettings": [true]
}
},
2018-07-17 13:07:50 +02:00
{
"name": "sessionWhiteList",
"displayDependencies": {
"blockMode": ["fake", "block", "ask"],
2018-07-17 13:07:50 +02:00
"displayAdvancedSettings": [true]
}
},
2017-12-24 21:52:44 +01:00
{
"name": "blackList",
"displayDependencies": {
"blockMode": ["block", "fake", "ask", "allow"],
2017-12-24 21:52:44 +01:00
"displayAdvancedSettings": [true]
}
},
2018-09-12 09:21:52 +02:00
"Canvas-API",
{
"name": "protectedCanvasPart"
},
2018-09-12 09:21:52 +02:00
{
"name": "protectedAPIFeatures",
"displayedSection": "Canvas-API",
"displayDependencies": [
{
"displayAdvancedSettings": [true]
}
]
},
{
"name": "minFakeSize",
"displayDependencies": [
{
"blockMode": ["fake"],
2018-09-12 09:21:52 +02:00
"displayAdvancedSettings": [true]
},
{
"blockMode": ["ask"],
2018-09-12 09:21:52 +02:00
"askDenyMode": ["fake"],
"displayAdvancedSettings": [true]
}
]
},
{
"name": "maxFakeSize",
"displayDependencies": [
{
"blockMode": ["fake"],
2018-09-12 09:21:52 +02:00
"displayAdvancedSettings": [true]
},
{
"blockMode": ["ask"],
2018-09-12 09:21:52 +02:00
"askDenyMode": ["fake"],
"displayAdvancedSettings": [true]
}
]
},
{
"name": "ignoreFrequentColors",
"displayDependencies": [
{
"blockMode": ["fake"],
"protectedCanvasPart": ["readout", "everything"],
2018-09-12 09:21:52 +02:00
"displayAdvancedSettings": [true]
},
{
"blockMode": ["ask"],
2018-09-12 09:21:52 +02:00
"askDenyMode": ["fake"],
"displayAdvancedSettings": [true]
}
]
},
{
"name": "minColors",
"displayDependencies": [
{
"blockMode": ["fake"],
"protectedCanvasPart": ["readout", "everything"],
2018-09-12 09:21:52 +02:00
"displayAdvancedSettings": [true]
},
{
"blockMode": ["ask"],
2018-09-12 09:21:52 +02:00
"askDenyMode": ["fake"],
"displayAdvancedSettings": [true]
}
]
},
{
"name": "fakeAlphaChannel",
"displayDependencies": [
{
"blockMode": ["fake"],
"protectedCanvasPart": ["readout", "everything"],
2018-09-12 09:21:52 +02:00
"displayAdvancedSettings": [true]
},
{
"blockMode": ["ask"],
2018-09-12 09:21:52 +02:00
"askDenyMode": ["fake"],
"displayAdvancedSettings": [true]
}
]
},
{
"name": "useCanvasCache",
"displayDependencies": [
{
"blockMode": ["fake"],
"protectedCanvasPart": ["readout", "everything"],
2018-09-12 09:21:52 +02:00
"displayAdvancedSettings": [true]
},
{
"blockMode": ["ask"],
2018-09-12 09:21:52 +02:00
"askDenyMode": ["fake"],
"displayAdvancedSettings": [true]
}
]
},
{
"name": "storeImageForInspection",
"displayDependencies": [
{
"showNotifications": [true],
"storeNotificationData": [true],
"displayAdvancedSettings": [true]
}
]
},
2018-06-16 00:22:31 +02:00
"Audio-API",
{
"name": "protectAudio"
},
2018-09-12 09:21:52 +02:00
{
"name": "protectedAPIFeatures",
"displayedSection": "Audio-API",
"displayDependencies": [
{
"protectAudio": [true],
"displayAdvancedSettings": [true]
}
]
},
2018-06-16 00:22:31 +02:00
{
"name": "audioFakeRate",
2018-06-21 00:17:52 +02:00
"displayDependencies": [
{
"blockMode": ["fake"],
2018-06-21 00:17:52 +02:00
"protectAudio": [true],
"displayAdvancedSettings": [true]
},
{
"blockMode": ["ask"],
2018-06-21 00:17:52 +02:00
"askDenyMode": ["fake"],
"protectAudio": [true],
"displayAdvancedSettings": [true]
}
]
2018-06-16 00:22:31 +02:00
},
{
"name": "audioNoiseLevel",
2018-06-21 00:17:52 +02:00
"displayDependencies": [
{
"blockMode": ["fake"],
2018-06-21 00:17:52 +02:00
"protectAudio": [true],
"displayAdvancedSettings": [true]
},
{
"blockMode": ["ask"],
2018-06-21 00:17:52 +02:00
"askDenyMode": ["fake"],
"protectAudio": [true],
"displayAdvancedSettings": [true]
}
]
2018-06-16 00:22:31 +02:00
},
2018-06-30 00:34:20 +02:00
{
"name": "useAudioCache",
"displayDependencies": [
{
"blockMode": ["fake"],
2018-06-30 00:34:20 +02:00
"protectAudio": [true],
"displayAdvancedSettings": [true]
},
{
"blockMode": ["ask"],
2018-06-30 00:34:20 +02:00
"askDenyMode": ["fake"],
"protectAudio": [true],
"displayAdvancedSettings": [true]
}
]
},
2018-06-21 00:19:49 +02:00
{
"name": "audioUseFixedIndices",
"displayDependencies": [
{
"blockMode": ["fake"],
2018-06-21 00:19:49 +02:00
"protectAudio": [true],
"displayAdvancedSettings": [true]
},
{
"blockMode": ["ask"],
2018-06-21 00:19:49 +02:00
"askDenyMode": ["fake"],
"protectAudio": [true],
"displayAdvancedSettings": [true]
}
]
},
{
"name": "audioFixedIndices",
"displayDependencies": [
{
"audioUseFixedIndices": [true],
"blockMode": ["fake"],
2018-06-21 00:19:49 +02:00
"protectAudio": [true],
"displayAdvancedSettings": [true]
},
{
"audioUseFixedIndices": [true],
"blockMode": ["ask"],
2018-06-21 00:19:49 +02:00
"askDenyMode": ["fake"],
"protectAudio": [true],
"displayAdvancedSettings": [true]
}
]
},
"History-API",
2018-09-12 09:21:52 +02:00
{
"name": "protectedAPIFeatures",
"displayedSection": "History-API",
"displayDependencies": [
{
"displayAdvancedSettings": [true]
}
]
},
{
"name": "historyLengthThreshold",
"displayDependencies": {
"displayAdvancedSettings": [true]
}
},
"Window-API",
{
2018-09-12 09:21:52 +02:00
"name": "protectWindow"
},
{
"name": "protectedAPIFeatures",
"displayedSection": "Window-API",
"displayDependencies": [
{
"protectWindow": [true],
"displayAdvancedSettings": [true]
}
]
},
2018-09-04 23:29:58 +02:00
"DOMRect-API",
{
2018-09-12 09:21:52 +02:00
"name": "protectDOMRect"
},
{
"name": "protectedAPIFeatures",
"displayedSection": "DOMRect-API",
"displayDependencies": [
{
"protectDOMRect": [true],
"displayAdvancedSettings": [true]
}
]
2018-09-04 23:29:58 +02:00
},
{
"name": "domRectIntegerFactor",
"displayDependencies": {
"protectDOMRect": [true],
"displayAdvancedSettings": [true]
}
},
2019-02-27 23:49:00 +01:00
"Navigator-API",
{
"name": "protectNavigator"
},
{
"name": "protectedAPIFeatures",
"displayedSection": "Navigator-API",
"displayDependencies": [
{
"protectNavigator": [true],
"displayAdvancedSettings": [true]
}
]
},
{
"name": "openNavigatorSettings",
"displayDependencies": [
{
"protectNavigator": [true]
}
]
},
2017-12-24 21:52:44 +01:00
"misc",
2018-08-21 22:03:16 +02:00
{
"name": "theme"
},
{
"name": "blockDataURLs",
"displayDependencies": {
"displayAdvancedSettings": [true]
}
},
2017-11-07 00:36:44 +01:00
{
"name": "showReleaseNotes"
},
{
"name": "logLevel",
"displayDependencies": {
"displayAdvancedSettings": [true]
}
2017-11-14 01:07:27 +01:00
},
2017-12-24 21:52:44 +01:00
"settings",
2018-10-09 08:14:50 +02:00
{
"name": "openSettingSanitation"
},
2017-11-14 01:07:27 +01:00
{
"name": "exportSettings",
"actions": ["inspectSettings", "saveSettings", "loadSettings"]
},
{
"name": "resetSettings"
2017-11-07 00:36:44 +01:00
}
];
2018-07-02 00:29:41 +02:00
settingsDisplay.displayHidden = "displayHiddenSettings";
2017-11-07 00:36:44 +01:00
if ((typeof module) !== "undefined"){
module.exports = settingsDisplay;
}
else {
2019-03-12 22:24:23 +01:00
require.register("./settingsDisplay", settingsDisplay);
2017-11-07 00:36:44 +01:00
}
}());