style: using better data structures for constants
This will cause a slight performance increase
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Disable loading these resources for speed
|
# Disable loading these resources for speed
|
||||||
DEFAULT_DISABLED_RESOURCES = [
|
DEFAULT_DISABLED_RESOURCES = {
|
||||||
'font',
|
'font',
|
||||||
'image',
|
'image',
|
||||||
'media',
|
'media',
|
||||||
@@ -10,9 +10,9 @@ DEFAULT_DISABLED_RESOURCES = [
|
|||||||
'websocket',
|
'websocket',
|
||||||
'csp_report',
|
'csp_report',
|
||||||
'stylesheet',
|
'stylesheet',
|
||||||
]
|
}
|
||||||
|
|
||||||
DEFAULT_STEALTH_FLAGS = [
|
DEFAULT_STEALTH_FLAGS = (
|
||||||
# Explanation: https://peter.sh/experiments/chromium-command-line-switches/
|
# Explanation: https://peter.sh/experiments/chromium-command-line-switches/
|
||||||
# Generally this will make the browser faster and less detectable
|
# Generally this will make the browser faster and less detectable
|
||||||
'--no-pings',
|
'--no-pings',
|
||||||
@@ -87,7 +87,7 @@ DEFAULT_STEALTH_FLAGS = [
|
|||||||
'--enable-features=NetworkService,NetworkServiceInProcess,TrustTokens,TrustTokensAlwaysAllowIssuance',
|
'--enable-features=NetworkService,NetworkServiceInProcess,TrustTokens,TrustTokensAlwaysAllowIssuance',
|
||||||
'--blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4',
|
'--blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4',
|
||||||
'--disable-features=AudioServiceOutOfProcess,IsolateOrigins,site-per-process,TranslateUI,BlinkGenPropertyTrees',
|
'--disable-features=AudioServiceOutOfProcess,IsolateOrigins,site-per-process,TranslateUI,BlinkGenPropertyTrees',
|
||||||
]
|
)
|
||||||
|
|
||||||
# Defaulting to the docker mode, token doesn't matter in it as it's passed for the container
|
# Defaulting to the docker mode, token doesn't matter in it as it's passed for the container
|
||||||
NSTBROWSER_DEFAULT_QUERY = {
|
NSTBROWSER_DEFAULT_QUERY = {
|
||||||
|
|||||||
Reference in New Issue
Block a user