request_intercept
Intercept network requests to log, block, or modify them. Use presets to optimize bandwidth by blocking images, media, fonts, or stylesheets, or define custom rules.
Instructions
Intercept network requests (log, block, modify). preset="optimize-bandwidth" blocks Image/Media/Font/Stylesheet; preset="optimize-bandwidth-light" blocks Image/Media/Font. User block/allow/modify rules run after presets; explicit allow rules win. OPENCHROME_OPTIMIZE_BANDWIDTH= can auto-apply to new targets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID | |
| action | Yes | Action to perform | |
| preset | No | Bandwidth preset: "optimize-bandwidth" blocks Image/Media/Font/Stylesheet; "optimize-bandwidth-light" blocks Image/Media/Font only. | |
| rule | No | Rule definition (addRule) | |
| ruleId | No | Rule ID (removeRule) | |
| limit | No | Max logs to return (getLogs) | |
| dryRun | No | Preview enable/addRule rule installation without enabling interception, installing listeners, or mutating rules. |