We currently have the hooks ResourceLoaderSiteModulePages and ResourceLoaderSiteStylesModulePages to allow us to change which pages apply.
This is used in MobileFrontend to apply MediaWiki:Mobile.css and MediaWiki:Mobile.js instead of Mediawiki:Common.js and MediaWiki:Common.css
To support splitting Vector into 2 skins with minimum disruption to users using Vector legacy or modern version (the default on some wikis such as French Wikipedia) and expecting their user scripts/styles to apply (e.g. User:Jdlrobson/vector.css) we will need a similar hook for user scripts styles.
Acceptance criteria
- If I use Legacy Vector, User:jdlrobson/vector.js, User:jdlrobson/vector.css, User:jdlrobson/vector19.js and User:jdlrobson/vector19.css will apply.
- If I use Modern Vector, User:jdlrobson/vector.js, User:jdlrobson/vector.css, User:jdlrobson/vector22.js and User:jdlrobson/vector22.css will apply.