feat: add types to webRequest filter (#30914)
This commit is contained in:
parent
edf887bdc5
commit
ed7b5c44a2
4 changed files with 134 additions and 35 deletions
|
@ -1,3 +1,4 @@
|
|||
# WebRequestFilter Object
|
||||
|
||||
* `urls` string[] - Array of [URL patterns](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns) that will be used to filter out the requests that do not match the URL patterns.
|
||||
* `types` String[] (optional) - Array of types that will be used to filter out the requests that do not match the types. When not specified, all types will be matched. Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`, `object`, `xhr`, `ping`, `cspReport`, `media` or `webSocket`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue