From 8e6591d167c0143afb541a33a3ccaffa2b6f13eb Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 7 Nov 2016 06:34:55 -0500 Subject: [PATCH] Updated How to whitelist a web site (markdown) --- How-to-whitelist-a-web-site.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/How-to-whitelist-a-web-site.md b/How-to-whitelist-a-web-site.md index b7f680d..6c27c2b 100644 --- a/How-to-whitelist-a-web-site.md +++ b/How-to-whitelist-a-web-site.md @@ -41,6 +41,13 @@ If no `/` appears in a whitelist directive, and if the directive contains charac Wildcards can be used at any position. However, when a wildcard is used within the hostname portion of a directive, it cannot be at the end of the hostname, and also must be at the boundary of a hostname label. +#### Regular expression (1.9.17+) + +- `/^https?://192\.168\.0\.\d+//` +- `/^https://[0-9a-z-]+//` + +When you are facing a case where no other directive syntax work, you may use a regular expression. When a whitelist directive starts and ends with a forward slash (`/`), uBO will treat the directive as a regular expression-based one. + #### A Youtube channel There is a user script on [Greasy Fork](https://greasyfork.org/): [YouTube - whitelist channels in uBlock Origin](https://greasyfork.org/en/scripts/22308-youtube-whitelist-channels-in-ublock-origin). I can't vouch for the script, you will have to find out yourself whether it works.