Module adblock::cosmetic_filter_cache
source · 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§
- Representations of filters with complex behavior that relies on in-page JS logic.
- Contains cosmetic filter information intended to be used on a particular URL.