Module adblock::resources

source ·
Expand description

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.

If the resource-assembler feature is enabled, the resource_assembler module will assist with the construction of Resources directly from the uBlock Origin project.

Structs§

  • Specifies a set of permissions required to inject a scriptlet resource.
  • Struct representing a resource that can be used by an adblocking engine.
  • Unified resource storage for both redirects and scriptlets.

Enums§

  • Describes failure cases when preparing Resources to be used for adblocking.
  • Acceptable MIME types for resources used by $redirect and +js(...) adblock rules.
  • Different ways that the data within the content field of a Resource can be interpreted.
  • Describes failure cases when attempting to retrieve a resource for scriptlet injection.