Open
Description
We will deprecate @include
and @exclude
and only support @match
and @exclude-match
in the future.
- Match pattern structure is safer and stricter, not too many accidents happen.
- It reduces code logic, and may helps improve matching efficiency.
- In the Web Extension API,
include_globs
andexclude_globs
- Only support
globs
instead of regular expressions. - And Apple never implement these keys in Safari.
- The newer API
scripting.RegisteredContentScript
no longer supports these keys.
- Only support
- Reduce confusion and difficult choices caused by different syntaxes.
We plan to add a deprecation hint in v5 and eventually remove it in v6.0.