From 8733baf797786a2103a54d7d24802c580462424c Mon Sep 17 00:00:00 2001 From: gwarser Date: Wed, 14 Aug 2019 19:22:08 +0200 Subject: [PATCH] Updated Static filter syntax (markdown) --- 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 5fcd91d..af081e8 100644 --- a/Static-filter-syntax.md +++ b/Static-filter-syntax.md @@ -45,7 +45,7 @@ uBO v1.16.0 and above supports pre-parsing directives. Pre-parsing directives ar The pre-parsing directives are executed before a list content is parsed, and influence the final content of a filter list. -### `!#include [file name]` +#### `!#include [file name]` The `!#include` directive allows to import another filter list in place where the directive appears. The purpose is to allow filter list maintainers to create filters which are specific to uBO, while keeping their list compatible with other blockers. Other blockers will ignore the `!#include` directive, because it will be seen as a comment and thus discarded. uBO will attempt to load the resource found at `[file name]` (the sub-list) and load its content into the current list. @@ -59,7 +59,7 @@ Incorrect usage: - `!#include https://github.com/uBlockOrigin/uAssets/blob/master/filters/filters.txt` - `!#include ../filters.txt` -### `!#if [condition]` +#### `!#if [condition]` The `!#if` directive allows filter list maintainers to create areas in a filter list which will be parsed **only** if certain conditions are met (or not met). For example this can be used to create filters which are specific to a particular browser.