BlockPattern

@Serializable
data class BlockPattern(val urlPattern: String, val block: Boolean)

Constructors

Link copied to clipboard
constructor(urlPattern: String, block: Boolean)

Properties

Link copied to clipboard

Whether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later BlockPattern.

Link copied to clipboard

URL pattern to match. Patterns use the URLPattern constructor string syntax (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: *://*:*/*.css.