A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/gorhill/uBlock/wiki/Dynamic-filtering:-precedence below:

precedence · gorhill/uBlock Wiki · GitHub

Back to "Dynamic-filtering"

First: Trusted site directives override both dynamic filtering and static filtering. Trusted site directives appear in the Trusted sites pane in the dashboard, and they are used to completely disable filtering. The big blue button in the popup UI is used to easily add current site/page to the Trusted sites list.

Dynamic allow/block rules override static filtering rules.

There is a precedence logic for dynamic filtering cells. Narrower rules override broader ones; ties are broken first by destination domain, then by request type. From highest to lowest precedence, we have:

Precedence rule Example More qualified destination domains take precedence over less qualified ones * www.dest.com * block overrides * dest.com * noop Specific destination domains take precedence over specific request types * dest.com * noop overrides * * 3p-script block Party-and-content types take precedence over party types * * 3p-script block overrides * * 3p noop Party types take precedence over content types * * 3p noop overrides * * image block Specific request types take precedence over specific source domains * * image block overrides source.com * * noop More qualified source domains take precedence over less qualified ones www.source.com * * noop overrides source.com * * block Specific source domains take precedence over universal rules source.com * * block overrides * * * noop

The UI is designed in such way that the precedence logic should hopefully become clear with usage. Lower rows in the grid of cells always take precedence over higher rows, and a cell in the right column takes precedence over the cell to its left. Rules in the left column (global, all source domains) "bleed" to the right (local, this particular source domain) when there's not a specific rule in the right column.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4