Module adblock::cosmetic_filter_cache[][src]

Expand description

Provides behavior related to cosmetic filtering - that is, modifying a page’s contents after it’s been loaded into a browser. This is primarily used to hide or clean up unwanted page elements that are served inline with the rest of the first-party content from a page, but can also be used to inject JavaScript “scriptlets” that intercept and modify the behavior of scripts on the page at runtime.

The primary API exposed by this module is the CosmeticFilterCache struct, which stores cosmetic filters and allows them to be queried efficiently at runtime for any which may be relevant to a particular page.

Structs

Contains cosmetic filter information intended to be used on a particular URL.

Enums

Each variant describes a single rule that is specific to a particular hostname.