Advertisement
Guest User

Untitled

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