1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-03 02:37:21 +02:00

Updated How to whitelist a web site (markdown)

gorhill 2014-12-15 06:53:00 -08:00
parent e58e11b30c
commit 00b394cfd6

@ -8,14 +8,17 @@ The feature is already available, it is the big power button: it serves to white
All whitelist directives are matched against the URL address of web pages. All whitelist directives are matched against the URL address of web pages.
As of version 0.8.2.0, the whitelist directive syntax is split into two classes: As of version 0.8.2.0, the whitelist directive syntax is split into three classes:
- Plain - Plain
- Complex - Complex
- Comment
Plain syntax is when using only hostname label(s), which means only the hostname portion of a URL will be taken into account. With plain syntax, the matching is performed by comparing the right-most portion of the page hostname with the whitelist directive. Wildcards are not allowed when using plain syntax. Plain syntax is when using only hostname label(s), which means only the hostname portion of a URL will be taken into account. With plain syntax, the matching is performed by comparing the right-most portion of the page hostname with the whitelist directive. Wildcards are not allowed when using plain syntax.
Complex syntax occurs if and only if at least one `/` appears in a whitelist directive. Optionally, wildcard `*` can be used with complex directives for more flexibility. Complex syntax occurs if and only if at least one `/` appears in a whitelist directive. Optionally, wildcard `*` can be used with complex directives for more flexibility.
A comment is a line prefixed with `#`. Comments are ignored by µBlock.
If no `/` appears in a whitelist directive, and if the directive contains characters which are not allowed for plain hostname, then the whitelist directive will be commented out and ignored by µBlock. If no `/` appears in a whitelist directive, and if the directive contains characters which are not allowed for plain hostname, then the whitelist directive will be commented out and ignored by µBlock.
#### Plain hostname #### Plain hostname