Expand description
Chromium launch arguments and resource-type constants.
This module defines the static data that controls how the Chromium browser process is configured at launch time. There are four categories:
-
EXTRA_RESOURCES– the resource types (e.g."font","image") that are blocked when [BrowserConfig::disable_resources] istrue. -
DEFAULT_ARGS– baseline Chromium CLI flags applied to every launch. These disable unnecessary features and improve startup speed. -
STEALTH_ARGS– a large set of flags that remove automation indicators and reduce the browser’s fingerprint surface. Only applied in stealth mode. -
HARMFUL_ARGS– flags that reveal the browser is automated. These are stripped from the final argument list byfilter_harmful_args, even if the user accidentally includes them inextra_flags.
The two helper functions build_args and filter_harmful_args compose and
sanitise the argument list for use in [engine::build_launch_options].
Constants§
- DEFAULT_
ARGS - Default Chromium launch flags for speed and basic stealth.
- EXTRA_
RESOURCES - Resource types to block when
disable_resourcesis enabled. These are Playwright resource type strings matched against each outgoing request in [intercept::should_block_resource]. - HARMFUL_
ARGS - Chromium flags that reveal automation and should be stripped from launch args.
- STEALTH_
ARGS - Anti-detection Chromium flags for evading bot detection systems.
Functions§
- build_
args - Builds the Chromium launch argument list, optionally including stealth flags.
- filter_
harmful_ args - Removes automation-revealing flags from the argument list.