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 settingDefinitions = [
|
|
|
|
{
|
|
|
|
name: "logLevel",
|
|
|
|
defaultValue: 1,
|
|
|
|
options: [0, 1, 25, 50, 75, 100]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "whiteList",
|
|
|
|
defaultValue: ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "blackList",
|
|
|
|
defaultValue: ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "blockMode",
|
|
|
|
defaultValue: "fakeReadout",
|
|
|
|
options: [
|
|
|
|
"blockReadout", "fakeReadout", "fakeInput", "askReadout", null,
|
|
|
|
"blockEverything", "block", "ask", "allow", "allowEverything"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "minFakeSize",
|
|
|
|
defaultValue: 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "maxFakeSize",
|
|
|
|
defaultValue: 0
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "rng",
|
|
|
|
defaultValue: "nonPersistent",
|
|
|
|
options: ["nonPersistent", "constant", "persistent"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "useCanvasCache",
|
|
|
|
defaultValue: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ignoreFrequentColors",
|
|
|
|
defaultValue: 0
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "fakeAlphaChannel",
|
|
|
|
defaultValue: false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "persistentRndStorage",
|
|
|
|
defaultValue: ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "storePersistentRnd",
|
|
|
|
defaultValue: false
|
|
|
|
},
|
2017-11-08 17:46:41 +01:00
|
|
|
{
|
|
|
|
name: "persistentRndClearIntervalValue",
|
|
|
|
defaultValue: 0
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "persistentRndClearIntervalUnit",
|
|
|
|
defaultValue: "days",
|
|
|
|
options: ["seconds", "minutes", "hours", "days", "weeks", "months", "years"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "lastPersistentRndClearing",
|
|
|
|
defaultValue: 0
|
|
|
|
},
|
2017-11-07 00:36:44 +01:00
|
|
|
{
|
|
|
|
name: "askOnlyOnce",
|
2017-11-10 23:45:09 +01:00
|
|
|
defaultValue: "individual",
|
|
|
|
options: ["no", "individual", "combined"]
|
2017-11-07 00:36:44 +01:00
|
|
|
},
|
2017-11-09 00:53:52 +01:00
|
|
|
{
|
|
|
|
name: "askDenyMode",
|
|
|
|
defaultValue: "block",
|
|
|
|
options: ["block", "fake"]
|
|
|
|
},
|
2017-11-07 00:36:44 +01:00
|
|
|
{
|
|
|
|
name: "showNotifications",
|
|
|
|
defaultValue: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "storeImageForInspection",
|
|
|
|
defaultValue: false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "notificationDisplayTime",
|
|
|
|
defaultValue: 30
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ignoreList",
|
|
|
|
defaultValue: ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "showCallingFile",
|
|
|
|
defaultValue: false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "showCompleteCallingStack",
|
|
|
|
defaultValue: false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "enableStackList",
|
|
|
|
defaultValue: false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "stackList",
|
|
|
|
defaultValue: ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "displayAdvancedSettings",
|
|
|
|
defaultValue: false
|
|
|
|
},
|
2017-11-11 23:34:59 +01:00
|
|
|
{
|
|
|
|
name: "displayDescriptions",
|
|
|
|
defaultValue: false
|
|
|
|
},
|
2017-11-07 00:36:44 +01:00
|
|
|
{
|
|
|
|
name: "isStillDefault",
|
|
|
|
defaultValue: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "storageVersion",
|
2017-11-10 23:45:09 +01:00
|
|
|
defaultValue: 0.2,
|
|
|
|
fixed: true
|
2017-11-07 00:36:44 +01:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
if ((typeof module) !== "undefined"){
|
|
|
|
module.exports = settingDefinitions;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
window.scope.settingDefinitions = settingDefinitions;
|
|
|
|
}
|
|
|
|
}());
|