Smart rules for blacklist
Userscripts are injected into web pages according to predefined rules. However, the rules do not always satisfy users for different reasons. In such cases, we need blacklist to exclude some web pages for all scripts.
In most cases, we may want to add simply hostnames to exclude.
Since match patterns are safer to match URLs, we prefer to use
@exclude-matchrules to exclude URLs more flexibly.
They are commonly supported by userscripts, so we should just keep them work.
Taken all use cases into account, the blacklist may have following patterns:
A string without slashes, e.g.
A string with scheme, hostname and pathname patterns, e.g.
A string prefixed with
A string starting with
#, will be ignored.
Here is a full example: