From 6a7d384d4a2f328db52ae9b1b3dfb4dd38336c45 Mon Sep 17 00:00:00 2001 From: gwarser Date: Wed, 28 Aug 2019 14:19:15 +0200 Subject: [PATCH] !#if false --- Static-filter-syntax.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Static-filter-syntax.md b/Static-filter-syntax.md index aca1f3e..5eb8628 100644 --- a/Static-filter-syntax.md +++ b/Static-filter-syntax.md @@ -85,15 +85,19 @@ For the time being, only a single token is supported in a `!#if` directive (can env_firefox env_mobile env_safari + false (1.21.9b7) cap_html_filtering cap_user_stylesheet -Tip: since `ext_ublock` is always true in uBO, you can use a `!#if` directive to disable a large block of your filters without having to remove them: +Starting from [1.21.9b7](https://github.com/gorhill/uBlock/commit/1d805fb9da1aad918d02cc74796d5aa5e974b184) you can use `!#if false` directive to disable a large block of your filters without having to remove them. - !#if !ext_ublock + !#if false ... !#endif +Before this version, you could use negated `ext_ublock`, since this token is always true in uBO. + + ## Extended syntax uBO extends Adblock Plus filter syntax.