Last modified: 2014-08-29 02:26:29 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63748, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61748 - Provide per group and per skin global JS and CSS
Provide per group and per skin global JS and CSS
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
GlobalCssJs (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-21 14:01 UTC by Helder
Modified: 2014-08-29 02:26 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2014-02-21 14:01:58 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]]
* ...
Comment 1 Kunal Mehta (Legoktm) 2014-02-21 21:22:00 UTC
Sounds reasonable.

I wonder if we should also support CA global groups & the GlobalUserRights extension.
Comment 2 Gerrit Notification Bot 2014-02-21 23:33:28 UTC
Change 114896 had a related patch set uploaded by Legoktm:
Add support for MediaWiki:Global-$skinname.js/css

https://gerrit.wikimedia.org/r/114896
Comment 3 Gerrit Notification Bot 2014-06-16 01:36:05 UTC
Change 114896 merged by jenkins-bot:
Add support for MediaWiki:Global-$skinname.js/css

https://gerrit.wikimedia.org/r/114896
Comment 4 Kunal Mehta (Legoktm) 2014-06-16 01:37:00 UTC
Still need to figure out groups.
Comment 5 Helder 2014-07-30 18:43:39 UTC
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).
Comment 6 Kunal Mehta (Legoktm) 2014-07-30 22:47:11 UTC
(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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links