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";
|
2019-11-28 01:26:35 +01:00
|
|
|
const settingsDisplay = [
|
2017-11-07 00:36:44 +01:00
|
|
|
{
|
2019-06-29 16:55:26 +02:00
|
|
|
name: "general",
|
|
|
|
sections: [
|
|
|
|
{
|
|
|
|
name: "",
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
"name": "displayAdvancedSettings"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "blockMode"
|
|
|
|
},
|
2021-01-26 13:47:11 +01:00
|
|
|
{
|
|
|
|
"name": "disruptSessionOnUpdate"
|
|
|
|
},
|
2021-01-26 21:45:15 +01:00
|
|
|
{
|
|
|
|
"name": "reloadExtension",
|
2021-03-06 11:17:04 +01:00
|
|
|
"actions": ["reloadExtension"],
|
2021-01-26 21:45:15 +01:00
|
|
|
"displayDependencies": [{"updatePending": [true]}]
|
|
|
|
},
|
2019-06-29 16:55:26 +02:00
|
|
|
]
|
2017-11-09 00:53:52 +01:00
|
|
|
},
|
|
|
|
{
|
2019-06-29 16:55:26 +02:00
|
|
|
name: "asking",
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
"name": "askOnlyOnce",
|
|
|
|
"displayDependencies": {
|
|
|
|
"blockMode": ["ask"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "askDenyMode",
|
|
|
|
"displayDependencies": {
|
|
|
|
"blockMode": ["ask"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "showCanvasWhileAsking",
|
|
|
|
"displayDependencies": {
|
|
|
|
"blockMode": ["ask"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]
|
2017-11-09 00:53:52 +01:00
|
|
|
},
|
|
|
|
{
|
2019-06-29 16:55:26 +02:00
|
|
|
name: "faking",
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
"name": "rng",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fake"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "storePersistentRnd",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fake"],
|
|
|
|
"rng": ["persistent"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"rng": ["persistent"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "persistentRndClearInterval",
|
|
|
|
"inputs": ["persistentRndClearIntervalValue", "persistentRndClearIntervalUnit"],
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fake"],
|
|
|
|
"rng": ["persistent"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"rng": ["persistent"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "clearPersistentRnd",
|
2019-07-16 13:40:08 +02:00
|
|
|
"actions": [
|
|
|
|
"clearPersistentRnd",
|
2019-11-30 02:05:37 +01:00
|
|
|
function(){
|
|
|
|
try {
|
|
|
|
return browser.contextualIdentities? "clearPersistentRndForContainer": false;
|
|
|
|
}
|
|
|
|
catch (error){
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}()
|
2019-07-16 13:40:08 +02:00
|
|
|
],
|
2019-06-29 16:55:26 +02:00
|
|
|
"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-09 00:53:52 +01:00
|
|
|
},
|
|
|
|
{
|
2019-06-29 16:55:26 +02:00
|
|
|
name: "notifications",
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
"name": "showNotifications"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "highlightPageAction",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"showNotifications": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "displayBadge"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "highlightBrowserAction"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "storeNotificationData",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"showNotifications": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "ignoreList",
|
|
|
|
"multiline": true,
|
|
|
|
"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]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "showCallingFile",
|
|
|
|
"displayDependencies": {
|
|
|
|
"blockMode": ["ask"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "showCompleteCallingStack",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
]
|
2018-10-25 13:42:18 +02:00
|
|
|
},
|
|
|
|
{
|
2019-06-29 16:55:26 +02:00
|
|
|
name: "lists",
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
"name": "enableStackList",
|
|
|
|
"displayDependencies": {
|
|
|
|
"blockMode": ["fake", "block", "ask"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "stackList",
|
|
|
|
"multiline": true,
|
|
|
|
"displayDependencies": {
|
|
|
|
"enableStackList": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "whiteList",
|
|
|
|
"multiline": true,
|
|
|
|
"displayDependencies": {
|
|
|
|
"blockMode": ["fake", "block", "ask"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "sessionWhiteList",
|
|
|
|
"multiline": true,
|
|
|
|
"displayDependencies": {
|
|
|
|
"blockMode": ["fake", "block", "ask"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "blackList",
|
|
|
|
"multiline": true,
|
|
|
|
"displayDependencies": {
|
|
|
|
"blockMode": ["block", "fake", "ask", "allow"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]
|
2017-11-09 00:53:52 +01:00
|
|
|
},
|
2019-07-03 13:44:38 +02:00
|
|
|
{
|
|
|
|
name: "settings",
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
"name": "displayDescriptions"
|
|
|
|
},
|
|
|
|
{
|
2019-07-17 13:09:16 +02:00
|
|
|
"name": "settingControlling",
|
|
|
|
"actions": [
|
|
|
|
"openSettingSanitation",
|
|
|
|
"inspectWhitelist"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "openSettingPresets"
|
2019-07-03 13:44:38 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "exportSettings",
|
2019-07-16 18:25:30 +02:00
|
|
|
"actions": [
|
2019-07-17 13:09:16 +02:00
|
|
|
"inspectSettings", "saveSettings", "loadSettings"
|
2019-07-16 18:25:30 +02:00
|
|
|
]
|
2019-07-03 13:44:38 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "resetSettings"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-08-20 21:48:05 +02:00
|
|
|
]
|
|
|
|
},
|
2018-08-21 22:43:41 +02:00
|
|
|
{
|
2019-06-29 16:55:26 +02:00
|
|
|
name: "APIs",
|
|
|
|
sections: [
|
|
|
|
{
|
|
|
|
name: "Canvas-API",
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
"name": "protectedCanvasPart"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "protectedAPIFeatures",
|
2019-11-11 15:30:11 +01:00
|
|
|
"replaceKeyPattern": / @ .+$/,
|
2019-06-29 16:55:26 +02:00
|
|
|
"displayedSection": "Canvas-API",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "minFakeSize",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fake"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "maxFakeSize",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fake"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "ignoreFrequentColors",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fake"],
|
|
|
|
"protectedCanvasPart": ["readout", "everything"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "minColors",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fake"],
|
|
|
|
"protectedCanvasPart": ["readout", "everything"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "fakeAlphaChannel",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fake"],
|
|
|
|
"protectedCanvasPart": ["readout", "everything"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "useCanvasCache",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fake"],
|
|
|
|
"protectedCanvasPart": ["readout", "everything"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "storeImageForInspection",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"showNotifications": [true],
|
|
|
|
"storeNotificationData": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2019-09-19 00:47:52 +02:00
|
|
|
{
|
|
|
|
"name": "webGLVendor",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "webGLRenderer",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "webGLUnmaskedVendor",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "webGLUnmaskedRenderer",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2019-06-29 16:55:26 +02:00
|
|
|
]
|
2018-08-24 16:47:27 +02:00
|
|
|
},
|
|
|
|
{
|
2019-06-29 16:55:26 +02:00
|
|
|
name: "Audio-API",
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
"name": "protectAudio"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "protectedAPIFeatures",
|
2019-11-11 15:30:11 +01:00
|
|
|
"replaceKeyPattern": / @ .+$/,
|
2019-06-29 16:55:26 +02:00
|
|
|
"displayedSection": "Audio-API",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "audioFakeRate",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fake"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "audioNoiseLevel",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fake"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "useAudioCache",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fake"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "audioUseFixedIndices",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"blockMode": ["fake"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"blockMode": ["ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "audioFixedIndices",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"audioUseFixedIndices": [true],
|
|
|
|
"blockMode": ["fake"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"audioUseFixedIndices": [true],
|
|
|
|
"blockMode": ["ask"],
|
|
|
|
"askDenyMode": ["fake"],
|
|
|
|
"protectAudio": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
]
|
2018-08-24 16:36:07 +02:00
|
|
|
},
|
|
|
|
{
|
2019-06-29 16:55:26 +02:00
|
|
|
name: "History-API",
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
"name": "protectedAPIFeatures",
|
2019-11-11 15:30:11 +01:00
|
|
|
"replaceKeyPattern": / @ .+$/,
|
2019-06-29 16:55:26 +02:00
|
|
|
"displayedSection": "History-API",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "historyLengthThreshold",
|
|
|
|
"displayDependencies": {
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]
|
2018-08-24 16:36:07 +02:00
|
|
|
},
|
|
|
|
{
|
2019-06-29 16:55:26 +02:00
|
|
|
name: "Window-API",
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
"name": "protectWindow"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "protectedAPIFeatures",
|
2019-11-11 15:30:11 +01:00
|
|
|
"replaceKeyPattern": / @ .+$/,
|
2019-06-29 16:55:26 +02:00
|
|
|
"displayedSection": "Window-API",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"protectWindow": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2020-01-02 11:41:13 +01:00
|
|
|
{
|
|
|
|
"name": "allowWindowNameInFrames",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"protectWindow": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2019-06-29 16:55:26 +02:00
|
|
|
]
|
2018-09-12 09:21:52 +02:00
|
|
|
},
|
|
|
|
{
|
2019-06-29 16:55:26 +02:00
|
|
|
name: "DOMRect-API",
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
"name": "protectDOMRect"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "protectedAPIFeatures",
|
2019-11-11 15:30:11 +01:00
|
|
|
"replaceKeyPattern": / @ .+$/,
|
2019-06-29 16:55:26 +02:00
|
|
|
"displayedSection": "DOMRect-API",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"protectDOMRect": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "domRectIntegerFactor",
|
|
|
|
"displayDependencies": {
|
|
|
|
"protectDOMRect": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]
|
2018-09-12 09:21:52 +02:00
|
|
|
},
|
2022-01-30 10:59:41 +01:00
|
|
|
{
|
|
|
|
name: "SVG-API",
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
"name": "protectSVG"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "protectedAPIFeatures",
|
|
|
|
"replaceKeyPattern": / @ .+$/,
|
|
|
|
"displayedSection": "SVG-API",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"protectSVG": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
2020-03-14 12:54:23 +01:00
|
|
|
{
|
|
|
|
name: "TextMetrics-API",
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
"name": "protectTextMetrics"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "protectedAPIFeatures",
|
|
|
|
"replaceKeyPattern": / @ .+$/,
|
|
|
|
"displayedSection": "TextMetrics-API",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"protectTextMetrics": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
2018-09-12 09:21:52 +02:00
|
|
|
{
|
2019-06-29 16:55:26 +02:00
|
|
|
name: "Navigator-API",
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
"name": "protectNavigator"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "protectedAPIFeatures",
|
2019-11-11 15:30:11 +01:00
|
|
|
"replaceKeyPattern": / @ .+$/,
|
2019-06-29 16:55:26 +02:00
|
|
|
"displayedSection": "Navigator-API",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"protectNavigator": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "openNavigatorSettings",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"protectNavigator": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
]
|
2018-09-12 09:21:52 +02:00
|
|
|
},
|
2019-11-11 23:00:39 +01:00
|
|
|
{
|
|
|
|
name: "Screen-API",
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
"name": "protectScreen"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "protectedAPIFeatures",
|
|
|
|
"replaceKeyPattern": / @ .+$/,
|
|
|
|
"displayedSection": "Screen-API",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"protectScreen": [true],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "screenSize",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"protectScreen": [true],
|
|
|
|
"fakeMinimalScreenSize": [false],
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "fakeMinimalScreenSize",
|
|
|
|
"displayDependencies": [
|
|
|
|
{
|
|
|
|
"protectScreen": [true],
|
|
|
|
"screenSize": [""]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
2018-09-12 09:21:52 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2019-06-29 16:55:26 +02:00
|
|
|
name: "misc",
|
|
|
|
sections: [
|
|
|
|
{
|
|
|
|
name: "misc",
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
"name": "theme"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "blockDataURLs",
|
|
|
|
"displayDependencies": {
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "showReleaseNotes"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "logLevel",
|
|
|
|
"displayDependencies": {
|
|
|
|
"displayAdvancedSettings": [true]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]
|
2018-09-12 09:21:52 +02:00
|
|
|
},
|
|
|
|
]
|
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
|
|
|
}
|
|
|
|
}());
|