webRequest.RequestFilter
An object describing filters to apply to webRequest events.
Type
Values of this type are objects. They contain these properties:
urls-
arrayofstring. An array of match patterns. The listener is only called for requests whose targets match any of the given patterns. Only requests made using HTTP, HTTPS, WS, or WSS trigger events. Other schemes supported by pattern matching, such asdata:andfile:, don't trigger events.view-source:requests may be matched based on its inner URL. typesOptional-
arrayofwebRequest.ResourceType. A list of resource types (for example, stylesheets, images, scripts). The listener is only called for requests for resources that are one of the given types. tabIdOptional-
integer. The listener is only called for requests from thetabidentified by this ID. windowIdOptional-
integer. The listener is only called for requests from thewindowidentified by this ID. incognitoOptional-
boolean. If provided, requests that do not match the incognito state (trueorfalse) are filtered out.
Browser compatibility
Note:
This API is based on Chromium's chrome.webRequest API. This documentation is derived from web_request.json in the Chromium code.