Board Thread:Script Suggestions/@comment-5211495-20170224103542/@comment-11733175-20170410120421

Probably the easiest thing is to make a js script that queries the API for a set list of groups which can regenerate the css as required. The API call would be something like http://dev.wikia.com/api.php?action=query&list=allusers&augroup=vanguard&aulimit=max&format=jsonfm (in this case I've used vanguard) and in rough terms of code it would end up with something like the following:

var groups = [ 'vanguard', 'voldev', 'vstf', 'helper', 'staff' ];   users = {};

function generateCSS { // generate css here and add to the css page }

function getUsers(i) {} group = groups[i]; // get list of users (new mw.Api).get({       // params go here, including group name    }).done(function (res) {        // access list of users from api result        users[group[i]] = listOfUsers;        if ([i + 1 === group.length) { generateCSS; return; }        getUsers(i + 1);    }) });

Things to remember include handling needing to re-query the api if the list of users isn't in a single set of results, encoding certain user names for older browsers and not deleting the list of bots current in the stylesheet.