-
Notifications
You must be signed in to change notification settings - Fork 22
The substitutions from that group will be applied to every page.
Add every applicable address to the URLs tab. URLs only need to match partially, e.g. example.com
will match http://example.com
, http://whatever.example.com
, http://anexample.com
, etc. You can also include a more specific address, e.g. example.com/foo
.
Add a hyphen -
at the beginning, e.g. -example.com
. Then it will be displayed in red to show that it will be excluded from application.
Substitutions will be applied if the page address matches one of the normal (including) URLs and doesn't match any of the excluding (with -
) URLs.
You may use an asterisk *
to match any 0 or more characters (not needed at the beginning and the end) and a vertical bar |
to match the beginning or the end of the URL. For example, http://*.example.com/|
would match http://www.example.com/
but not http://www.example.com/whatever
.
It's a way to define advanced text patterns. For more information read https://en.wikipedia.org/wiki/Regular_expression.
- https://regexone.com/ (interactive tutorial)
- https://medium.com/factory-mind/regex-tutorial-a-simple-cheatsheet-by-examples-649dc1c3f285 (tutorial)
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions (reference)
- https://regexr.com/ (to quickly test regexps)