Movatterモバイル変換


[0]ホーム

URL:


  1. Mozilla
  2. Add-ons
  3. Browser extensions
  4. JavaScript APIs
  5. webRequest
  6. webRequest.RequestFilter

webRequest.RequestFilter

An object describing filters to apply to webRequest events.

Type

Values of this type are objects. They contain the following properties:

urls

array ofstring. An array ofmatch patterns. The listener will only be called for requests whose targets match any of the given patterns. Only requests made using HTTP or HTTPS will trigger events, other protocols (such as data: and file:) supported by pattern matching do not trigger events.view-source: requests may be matched based on its inner URL.

typesOptional

array ofwebRequest.ResourceType. A list of resource types (for example, stylesheets, images, scripts). The listener will only be called for requests for resources which are one of the given types.

tabIdOptional

integer. The listener will only be called for requests from thetab identified by this ID.

windowIdOptional

integer. The listener will only be called for requests from thewindow identified by this ID.

incognitoOptional

boolean. If provided, requests that do not match the incognito state (true orfalse) will be filtered out.

Browser compatibility

Note:This API is based on Chromium'schrome.webRequest API. This documentation is derived fromweb_request.json in the Chromium code.

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp