1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-16 15:33:38 +01:00

Updated Static filter syntax (markdown)

gwarser 2019-08-14 19:22:08 +02:00
parent 8e2d1fc78f
commit 8733baf797

@ -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.