Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.getJSON("/api.php?action=query&format=json&list=allusers&augroup=threadmoderator&aulimit=max&cb=" + new Date().getTime(), function(data) {
- var users = [];
- for (var i in data.query.allusers) {
- users.push('#Rail .User[data-user="' + data.query.allusers[i].name + '"]');
- }
- if (users.length > 0) {
- mw.util.addCSS(
- users.join(",\n") + ' {\n' +
- '\tcolor: #1d981d !important; \n' +
- '\tfont-weight: normal; \n' +
- '\tfont-style: itatlic; \n' +
- '}'
- );
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement