Network.setBlockedURLsBlocks URLs from loading.
| Name | Type | Description |
|---|---|---|
urlPatterns (optional) | array | Patterns to match in the order in which they are given. These patterns also take precedence over any wildcard patterns defined in `urls`. |
urls (optional) | array | URL patterns to block. Wildcards ('*') are allowed. |
{
"id": 1,
"method": "Network.setBlockedURLs"
}
{
"id": 1,
"result": {}
}
const result = await send('Network.setBlockedURLs');
console.log(result);