From a7a5a0f262d1fbaa703b5d68abb3015ea6187d46 Mon Sep 17 00:00:00 2001 From: garry-ut99 <72945564+garry-ut99@users.noreply.github.com> Date: Sat, 6 Jul 2024 20:13:10 +0000 Subject: [PATCH] Updated "regex-based..." (minor) --- Static-filter-syntax.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Static-filter-syntax.md b/Static-filter-syntax.md index 3edd9f8..0940b0a 100644 --- a/Static-filter-syntax.md +++ b/Static-filter-syntax.md @@ -959,8 +959,8 @@ Starting with [1.46.1b15](https://github.com/gorhill/uBlock/commit/81498474d6d44 - solves: [regex-fied domain](https://github.com/uBlockOrigin/uBlock-issues/discussions/2234): - `/img[a-z]{3,5}\.buzz/##+js(nowoif)` - matches (example): `imgabcd.buzz` - solves : [Add support for domain double wildcarding in hiding rules (Would be a huge gamechanger for Nitter)](https://github.com/uBlockOrigin/uBlock-issues/issues/2905): - - `/^nitter\.[^.]+\.[^.]+$/##.timeline-item:has-text(owned)` - matches (example): `nitter.abc.com`, but not `nitter.com` - - `/^nitter(?:\.[^.]+){1,2}$/##.timeline-item:has-text(owned)` - matches (example): `nitter.com` + `nitter.abc.com` + - `/^nitter\.[^.]+\.[^.]+$/##.timeline-item:has-text(owned)` - matches (example): `nitter.abc.com`, but not `nitter.com` and not `nitter.abc.xyz.com` + - `/^nitter(?:\.[^.]+){1,2}$/##.timeline-item:has-text(owned)` - matches (example): `nitter.com` + `nitter.abc.com`, but not `nitter.abc.xyz.com` - solves: [Hiding rules are unable to specify to only block on the core domain and none of the subdomains (e.g. ~*.example.org doesn't work)](https://github.com/uBlockOrigin/uBlock-issues/issues/3291): - `/^example\.org$/##h1` - matches only `example.org` without subdomains - `/^www\.example\.org$/##h1` - matches only `www.example.org` without subdomains and without `example.org`