Skip to main content

Module constants

Module constants 

Source
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] is true.

  • 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 by filter_harmful_args, even if the user accidentally includes them in extra_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_resources is 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.