Crate adblock[][src]

Modules

blocker

Holds Blocker, which handles all network-based adblocking queries.

cosmetic_filter_cache

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.

engine
filters

Contains representations and standalone behaviors of individual filter rules.

lists

Parsing functions and collections for handling with multiple filter rules.

optimizer
request

Contains structures needed to describe network requests.

resources

In adblocking terms, resources are special placeholder scripts, images, video files, etc. that can be returned as drop-in replacements for harmful equivalents from remote servers. Resources also encompass scriptlets, which can be injected into pages to inhibit malicious behavior.

url_parser

Simplified URL parsing infrastructure, including the domain resolver implementation if the embedded-domain-resolver feature is disabled.