From 2166375cee54d9cc2c32bf093d05f3545a26bd34 Mon Sep 17 00:00:00 2001 From: MasterKia Date: Sat, 4 Feb 2023 13:42:41 +0330 Subject: [PATCH] Add support for regex-based values for domain=/from=/to= --- Static-filter-syntax.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Static-filter-syntax.md b/Static-filter-syntax.md index 522307d..9a6d929 100644 --- a/Static-filter-syntax.md +++ b/Static-filter-syntax.md @@ -348,6 +348,16 @@ Example: /adsign.$domain=~adsign.no ``` +Starting with [1.46.1b17](https://github.com/gorhill/uBlock/releases/tag/1.46.1b17) support for regex-based values has been added. Example of usage: +`@@*$ghide,domain=/img[a-z]{3,5}\.buzz/` + +Regex-based domain values can be negated just like plain or entity-based values: +`*$domain=~/regex.../` + +This new syntax does not apply to static extended filters. + +See also: [`to`](#to) + *** #### `elemhide` @@ -598,6 +608,14 @@ Examples: *$script,from=beforeitsnews.com,to=google.*|gstatic.com ``` +Starting with [1.46.1b17](https://github.com/gorhill/uBlock/releases/tag/1.46.1b17) support for regex-based values has been added. Example of usage: +`@@*$ghide,to=/img[a-z]{3,5}\.buzz/` + +Regex-based domain values can be negated just like plain or entity-based values: +`*$to=~/regex.../` + +This new syntax does not apply to static extended filters. + See also: [`denyallow`](#denyallow), [`from`](#from) ***