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/. */
|
|
|
|
(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
|
|
|
{
|
2017-11-09 00:53:52 +01:00
|
|
|
"name": "askOnlyOnce",
|
2017-11-07 00:36:44 +01:00
|
|
|
"displayDependencies": {
|
2017-11-09 00:53:52 +01:00
|
|
|
"blockMode": ["askReadout", "ask"]
|
2017-11-07 00:36:44 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2017-11-09 00:53:52 +01:00
|
|
|
"name": "askDenyMode",
|
2017-11-07 00:36:44 +01:00
|
|
|
"displayDependencies": {
|
2017-11-09 00:53:52 +01:00
|
|
|
"blockMode": ["askReadout", "ask"],
|
2017-11-07 00:36:44 +01:00
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
},
|
2018-01-04 13:36:18 +01:00
|
|
|
{
|
|
|
|
"name": "showCanvasWhileAsking",
|
|
|
|
"displayDependencies": {
|
|
|
|
"blockMode": ["askReadout", "ask"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
},
|
2017-12-24 21:52:44 +01:00
|
|
|
"faking",
|
2017-11-09 00:53:52 +01:00
|
|
|
{
|
|
|
|
"name": "minFakeSize",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fakeReadout", "fakeInput"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["askReadout", "ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "maxFakeSize",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fakeReadout", "fakeInput"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["askReadout", "ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-11-07 00:36:44 +01:00
|
|
|
{
|
|
|
|
"name": "rng",
|
2017-11-09 00:53:52 +01:00
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fakeReadout", "fakeInput"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["askReadout", "ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
2017-11-07 00:36:44 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "storePersistentRnd",
|
2017-11-09 00:53:52 +01:00
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fakeReadout", "fakeInput"],
|
|
|
|
"rng": ["persistent"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["askReadout", "ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"rng": ["persistent"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
2017-11-07 00:36:44 +01:00
|
|
|
},
|
2017-11-08 17:46:41 +01:00
|
|
|
{
|
|
|
|
"name": "persistentRndClearInterval",
|
|
|
|
"inputs": ["persistentRndClearIntervalValue", "persistentRndClearIntervalUnit"],
|
2017-11-09 00:53:52 +01:00
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fakeReadout", "fakeInput"],
|
|
|
|
"rng": ["persistent"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["askReadout", "ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"rng": ["persistent"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
2017-11-08 17:46:41 +01:00
|
|
|
},
|
2017-11-07 00:36:44 +01:00
|
|
|
{
|
|
|
|
"name": "clearPersistentRnd",
|
2017-11-09 00:53:52 +01:00
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fakeReadout", "fakeInput"],
|
|
|
|
"rng": ["persistent"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["askReadout", "ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"rng": ["persistent"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
2017-11-07 00:36:44 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "ignoreFrequentColors",
|
2017-11-09 00:53:52 +01:00
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fakeReadout"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["askReadout", "ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
2017-11-07 00:36:44 +01:00
|
|
|
},
|
2017-12-11 12:47:43 +01:00
|
|
|
{
|
|
|
|
"name": "minColors",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fakeReadout"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["askReadout", "ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-11-07 00:36:44 +01:00
|
|
|
{
|
|
|
|
"name": "fakeAlphaChannel",
|
2017-11-09 00:53:52 +01:00
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fakeReadout"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["askReadout", "ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
2017-11-07 00:36:44 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "useCanvasCache",
|
2017-11-09 00:53:52 +01:00
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fakeReadout"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["askReadout", "ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
2017-11-07 00:36:44 +01:00
|
|
|
},
|
2018-05-26 15:33:39 +02:00
|
|
|
{
|
|
|
|
"name": "apiWhiteList",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-12-24 21:52:44 +01:00
|
|
|
"notifications",
|
2017-11-07 00:36:44 +01:00
|
|
|
{
|
2018-08-19 23:34:50 +02:00
|
|
|
"name": "showNotifications"
|
2017-11-07 00:36:44 +01:00
|
|
|
},
|
2018-08-20 21:48:05 +02:00
|
|
|
{
|
|
|
|
"name": "highlightPageAction",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"showNotifications": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-08-21 22:43:41 +02:00
|
|
|
{
|
|
|
|
"name": "displayBadge"
|
|
|
|
},
|
2018-08-20 21:48:05 +02:00
|
|
|
{
|
|
|
|
"name": "highlightBrowserAction"
|
|
|
|
},
|
2017-11-07 00:36:44 +01:00
|
|
|
{
|
|
|
|
"name": "storeImageForInspection",
|
2017-11-09 00:53:52 +01:00
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"showNotifications": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
2017-11-07 00:36:44 +01:00
|
|
|
},
|
2017-12-18 23:17:18 +01:00
|
|
|
{
|
|
|
|
"name": "ignoreList",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"showNotifications": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-11-07 00:36:44 +01:00
|
|
|
{
|
|
|
|
"name": "showCallingFile",
|
|
|
|
"displayDependencies": {
|
|
|
|
"blockMode": ["askReadout", "ask"],
|
|
|
|
"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": ["blockReadout", "fakeReadout", "fakeInput", "askReadout", "block", "ask"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "stackList",
|
|
|
|
"displayDependencies": {
|
|
|
|
"enableStackList": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
2017-12-24 21:52:44 +01:00
|
|
|
{
|
|
|
|
"name": "whiteList",
|
|
|
|
"displayDependencies": {
|
|
|
|
"blockMode": ["blockReadout", "fakeReadout", "fakeInput", "askReadout", "block", "ask"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
},
|
2018-07-17 13:07:50 +02:00
|
|
|
{
|
|
|
|
"name": "sessionWhiteList",
|
|
|
|
"displayDependencies": {
|
|
|
|
"blockMode": ["blockReadout", "fakeReadout", "fakeInput", "askReadout", "block", "ask"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
},
|
2017-12-24 21:52:44 +01:00
|
|
|
{
|
|
|
|
"name": "blackList",
|
|
|
|
"displayDependencies": {
|
|
|
|
"blockMode": ["blockReadout", "fakeReadout", "fakeInput", "askReadout", "ask", "allow"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
},
|
2018-06-16 00:22:31 +02:00
|
|
|
"Audio-API",
|
|
|
|
{
|
|
|
|
"name": "protectAudio"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "audioFakeRate",
|
2018-06-21 00:17:52 +02:00
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fakeReadout", "fakeInput"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["askReadout", "ask", "allow"],
|
|
|
|
"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": ["fakeReadout", "fakeInput"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["askReadout", "ask", "allow"],
|
|
|
|
"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": ["fakeReadout", "fakeInput"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["askReadout", "ask", "allow"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-06-21 00:19:49 +02:00
|
|
|
{
|
|
|
|
"name": "audioUseFixedIndices",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fakeReadout", "fakeInput"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["askReadout", "ask", "allow"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "audioFixedIndices",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"audioUseFixedIndices": [true],
|
|
|
|
"blockMode": ["fakeReadout", "fakeInput"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"audioUseFixedIndices": [true],
|
|
|
|
"blockMode": ["askReadout", "ask", "allow"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-12-24 21:52:44 +01:00
|
|
|
"misc",
|
2018-08-21 22:03:16 +02:00
|
|
|
{
|
|
|
|
"name": "theme"
|
|
|
|
},
|
2018-07-16 00:14:44 +02:00
|
|
|
{
|
2018-07-21 00:32:15 +02:00
|
|
|
"name": "blockDataURLs",
|
2018-07-16 00:14:44 +02:00
|
|
|
"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",
|
2017-11-14 01:07:27 +01:00
|
|
|
{
|
|
|
|
"name": "exportSettings",
|
|
|
|
"displayDependencies": {
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
2017-11-22 14:14:33 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "resetSettings",
|
|
|
|
"displayDependencies": {
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
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 {
|
|
|
|
window.scope.settingsDisplay = settingsDisplay;
|
|
|
|
}
|
|
|
|
}());
|