On Fri, Dec 13, 2013 at 2:04 PM, Bartosz DziewoĆski matma.rex@gmail.com wrote:
It's sorta kinda happening as we speak while no one is looking ;)
https://bugzilla.wikimedia.org/show_bug.cgi?id=57891
-- Matma Rex
Looks like the cat got out of the bag.
The GlobalCssJs extension allows users to add custom JS or CSS for themselves on all wikis where they have an account. It's basically the equivalent of common.js, but on a global scale. It has been a requested feature since 2008[1].
For those not familiar with the history of global js/css, there currently is a bot run by a steward[2] which creates common.js pages importing the user's global.js upon request. This is mainly used by users in the SWMT[3] to do things like enable global Twinkle[4]. While this method works, it doesn't take advantage of ResourceLoader.
The extension will load User:$username/global.js and User:$username/global.css using ResourceLoader. It also includes MediaWiki:Global.js/css as the global equivalents of MediaWiki:Common.js/css.
The bulk of the code is still awaiting review in gerrit[5].
[1] https://bugzilla.wikimedia.org/show_bug.cgi?id=13953#c0 [2] https://meta.wikimedia.org/wiki/Synchbot [3] https://meta.wikimedia.org/wiki/SWMT [4] https://meta.wikimedia.org/wiki/User:Snowolf/How_to_globally_Twinkle [5] https://gerrit.wikimedia.org/r/#/c/94837
-- Legoktm
legoktm wrote:
For those not familiar with the history of global js/css, there currently is a bot run by a steward[2] which creates common.js pages importing the user's global.js upon request. This is mainly used by users in the SWMT[3] to do things like enable global Twinkle[4]. While this method works, it doesn't take advantage of ResourceLoader.
I think the last sentence in this paragraph sells yourself short a bit. The current "system" is extremely hackish (relying on a bot run under a steward's account), wasteful (creating hundreds of individual user subpages), unsupported (it relies on a steward's kindness and willingness to run a bot), and inefficient (not utilizing ResourceLoader). I'm very excited about the work you're doing to implement a proper solution. :-)
MZMcBride
wikitech-l@lists.wikimedia.org