Last modified: 2014-08-29 02:26:29 UTC
Aside from [[MediaWiki:Common.js]], MediaWiki already provides (local) [[MediaWiki:Group-sysop.js]] (.css) pages which will be loaded only for users in the associated groups, and [[MediaWiki:Vector.css]] (.js) which will load only in the specified skin. Similarly, the extension could provide global JS/CSS for skins and user groups: * [[MediaWiki:Global-group-sysop.js]] * [[MediaWiki:Global-group-sysop.css]] * [[MediaWiki:Global-vector.js]] * [[MediaWiki:Global-vector.css]] * ...
Sounds reasonable. I wonder if we should also support CA global groups & the GlobalUserRights extension.
Change 114896 had a related patch set uploaded by Legoktm: Add support for MediaWiki:Global-$skinname.js/css https://gerrit.wikimedia.org/r/114896
Change 114896 merged by jenkins-bot: Add support for MediaWiki:Global-$skinname.js/css https://gerrit.wikimedia.org/r/114896
Still need to figure out groups.
Also, consider adding * [[User:Me/global-vector.js]] * [[User:Me/global-vector.css]] * [[User:Me/global-monobook.js]] * [[User:Me/global-monobook.css]] etc... (although I doubt someone which uses many wikis will use more than one skin one each of them).
(In reply to Helder from comment #5) > Also, consider adding > * [[User:Me/global-vector.js]] > * [[User:Me/global-vector.css]] > * [[User:Me/global-monobook.js]] > * [[User:Me/global-monobook.css]] > etc... (although I doubt someone which uses many wikis will use more than > one skin one each of them). While doing so is extremely trivial, I'd rather not unless there's a strong use case for it.