docs.rodeo

MDN Web Docs mirror

declarativeNetRequest.RuleCondition

{{AddonSidebar}} 

Details of the condition that determines whether a rule matches a request, as the condition property of a {{WebExtAPIRef("declarativeNetRequest.Rule")}} .

Type

Values of this type are objects. They contain these properties:

Canonical domain

Domains specified in initiatorDomains, excludedInitiatorDomains, requestDomains, or excludedRequestDomains should comply with the following:

To programmatically generate the canonical domain for a URL, use the URL API and read its hostname property, i.e., new URL(url).hostname.

{{WebExtExamples("h2")}} 

Browser compatibility

{{Compat}} 

In this article

View on MDN