From 6b6cbef0d4fac6162865c36359e386bd2009b783 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Sat, 5 Dec 2015 10:14:39 +1000 Subject: [PATCH] add wildcard explanation --- Static-filter-syntax.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Static-filter-syntax.md b/Static-filter-syntax.md index a84faff..f828788 100644 --- a/Static-filter-syntax.md +++ b/Static-filter-syntax.md @@ -37,6 +37,10 @@ The wildcard character `*` can be used to apply a filter to **all** URLs. This i Usually, it is far more convenient to use [dynamic filtering rules](https://github.com/gorhill/uBlock/wiki/Dynamic-filtering) in lieu of such generic static filters. +##### Wildcard character `*` + +For the Adblock Plus like wildcard character `*`, uBlock Origin uses `/*` instead. This is due to uBlocks ability to read HOSTS files where a filter like '@@*arrow.gif' is a valid hostname. So in this case use `@@/*arrow.gif` instead. The first filter will allow `http://some-arrow.gif` while the second filter will allow `http://anydomain.com/some-arrow.gif` See #997 for details. + ##### Network filters options `document` for _block_ filters: