Tampermonkey (for most browsers) and Greasemonkey (for Firefox) support both @match
and @include
directives.
When I started to read about the difference between them, it turned out that @match
is somewhat stricter: userscript will not be launched on some addresses, which could be considered as potentially dangerous or just unwanted.
- https://wiki.greasespot.net/Include_and_exclude_rules
- https://wiki.greasespot.net/Metadata_Block#@match
From this arose the question:
a) Is there any potential risk to launch my own userscripts on all addresses (i.e. @match *://*/*
and the same for @include
)?
Or, b) the limitations of launching userscripts on some addresses are relevant for only 3rd-party userscripts, i.e. userscripts which were downloaded from some sites and therefore potentially containing some malicious code?