Skip to main content
The Override Document Functions command (Command Type: 21) alters the browser’s document prototype by overriding specific native functions, enabling interception or manipulation of their behavior.

Command Type

Command Type ID: 21

Parameters

Common Function Keys

"cookie", "title", "domain", "referrer", "URL", "readyState", "visibilityState", "hidden", "body", "head"

Usage Examples

Override Multiple Properties

Common Use Cases

  • Anti-Detection: Override properties that anti-scraping systems check
  • State Interception: Intercept cookie or title changes for tracking