interface IAdblockRule

Parsed adblock-style rule

Properties

ruleText: string

Original rule text

pattern: string

Pattern extracted from the rule

whitelist: boolean

Whether this is a whitelist/exception rule

Parsed options/modifiers, or null if none

hostname: string | null

Extracted hostname, or null if not a domain rule

Usage

import { type IAdblockRule } from ".";