← Back to Emulation domain

Emulation.setAutoDarkModeOverride

Automatically render all web contents using a dark theme.

Domain: Emulation experimental

Parameters

NameTypeDescription
enabled (optional)booleanWhether to enable or disable automatic dark mode. If not specified, any existing override will be cleared.

Example Request

{
  "id": 1,
  "method": "Emulation.setAutoDarkModeOverride"
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Emulation.setAutoDarkModeOverride');
console.log(result);