mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-04-12 06:09:05 +07:00
* Add declarativeNetRequest API samples. Adds a number of samples for the declarativeNetRequest API.
12 lines
483 B
Markdown
12 lines
483 B
Markdown
# chrome.declarativeNetRequest - URL Blocker
|
|
|
|
This sample demonstrates using the [`chrome.declarativeNetRequest`](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/) API to block requests.
|
|
|
|
## Overview
|
|
|
|
Once this extension is installed, any requests made in the main frame to example.com will be blocked.
|
|
|
|
## Implementation Notes
|
|
|
|
This sample uses the `chrome.declarativeNetRequest.onRuleMatchedDebug` event which is only available in unpacked extensions.
|