userscripts icon indicating copy to clipboard operation
userscripts copied to clipboard

Replace `include` with `match`

Open StrangePeanut opened this issue 2 years ago • 2 comments

include is considered unsafe and to be turned obsolete with the inevitable removal of Manifest v2. It would be great if the userscripts could be updated ahead of time replacing include with match. While the latter does not support regex it does support wildcards.

StrangePeanut avatar Oct 28 '22 06:10 StrangePeanut

Userscripts should not be affected by the manifest, only the userscript managers. Correct me if I'm wrong.

Farow avatar Nov 15 '22 14:11 Farow

Can't comment for all userscript managers but Tampermonkey states:

eslint: userscripts/better-use-match - Using @include is potentially unsafe and may be obsolete in Manifest v3 in early 2023. Please switch to @match.

Sounds to me like they're dropping @include support altogether (as they make Tampermonkey MV3 compliant to remain featured on the Web Store in 2023).

StrangePeanut avatar Nov 15 '22 15:11 StrangePeanut