跳转到主要内容

WebRequestFilter 对象

  • urls string[] - 用于包含匹配这些模式的请求的 URL 模式 数组。 使用模式 <all_urls> 来匹配所有 URL。
  • excludeUrls string[] (可选) - 用于排除匹配这些模式的请求的 URL 模式 数组。
  • types string[] (可选) - 用于过滤掉不匹配这些类型的请求的类型数组。 如果未指定,将匹配所有类型。 可以是 mainFramesubFramestylesheetscriptimagefontobjectxhrpingcspReportmediawebSocket