1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-29 06:07:11 +02:00

Created Filter syntax extensions (markdown)

gorhill 2014-09-08 07:15:48 -07:00
parent 1f84fea9dc
commit 0a8f3bacdd

@ -0,0 +1,11 @@
µBlock supports most of [Adblock Plus filter syntax](https://adblockplus.org/en/filter-cheatsheet). However µBlock does not support some very specific case, and added its own extensions to ABP filter syntax.
#### Not supported
**Regular expression-based filters:** may add according to demand, but if ever I add support for regex-based filters, I will support only for regexes which can be tokenized, or which are specific to a hostname, i.e. regexes which can be implemented in an efficient way.
#### Extended syntax
**Entity-based cosmetic filters:** Filters which are to be applied to a specific _entity_. An _entity_ is defined as follow: a formal domain name with the Public Suffix part replaced by a wildcard. Examples: `google.*` will apply to all Google domain names: `google.com`, `google.com.br`, `google.ca`, `google.co.uk`, etc. Another example: `facebook.*` will apply to all similar Facebook domain names: `facebook.com`, `facebook.net`.
**The `important` net filter option:** The important filter option, `important`, means to ignore all _allow_ filters. It applies only to net _block_ filters. The `important` option will allow you to block with 100% certainty specific net requests. Example: `||google-analytics.com^$important,third-party` will block all net requests to `google-analytics.com`, disregarding any existing net _allow_ filters. Another example: `||twitter.com^$important,third-party`. Etc.