Crate adblock[][src]

Modules

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

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.

Contains representations and standalone behaviors of individual filter rules.

Parsing functions and collections for handling with multiple filter rules.

Contains structures needed to describe network requests.

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.

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