User:Fiendian Reptiloid, Demon/markadmins.js

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
// importScript('User:Ahonc/markadmins.js');
//Based on [[ru:Участник:Obersachse/markadmins.js]]
//<pre>

var userSet = new Object();
var userSetTip = new Object();
userSet['A'] =  '|A. B.|Akl|Alison|Alnokta|AmiDaniel|Andre Engels|Aphaia|Arria Belli|Bastique|Beetstra|Brion VIBBER|Cary Bass|Daniel|Dbl2010|DerHexer|Dschwen|Effeietsanders|Eloquence|Erwin|FrancoGG|Fuzheado|GerardM|Guillom|HappyDog|Herbythyme|Hillgentleman|Huji|Jusjih|JzG|Kate|Korg|Lustiger seth|Mardetanha|Mark|Mike.lifeguard|Millosh|Mindspillage|Mxn|Nixeagle|Notafish|Oscar|Pathoschild|Patrick|Raul654|Rdsmith4|Redux|Sean Whitton|Shanel|Spacebirdy‎|Thunderhead|WJBscribe|Walter|Werdna|Xaosflux|Zanimum|Zirland|';
userSetTip['A'] = ', Адміністратор';
userSet['B'] = '|.anaconda|.snoopy.|Alexanderps|Angela|Anonymous Dissident|Anthere|Az1568|Benjamin-no|Cbrown1023|Cometstyles|Drini|Dungodung|EVula|Jdforrester|Jimbo Wales|Jon Harald Søby|Kylu|Lar|M7|Majorly|MaxSem|Meno25|Nakon|Nick1915|Nishkid64|RobH|Shizhao|Sj|Thogo|Tim Starling|VasilievVV|Yann|';
userSetTip['B'] = ', Бюрократ';
userSet['C'] = '|Anthere|Brion VIBBER|Drini|Herbythyme|Jon Harald Søby|Lar|Midom|Pathoschild|Spacebirdy|Tim Starling|Yann|';
userSetTip['C'] = ', checkuser';
userSet['O'] = '|Drini|Mike.lifeguard|';
userSetTip['O'] = ', Ревізор';
userSet['S'] = '|.anaconda|Andre Engels|Angela‎|Anthere‎|Bastique|Brion VIBBER|Cspurrier|Daniel Mayer|Darkoneko|Dbl2010|DerHexer|Drini|Dungodung|Effeietsanders|Guillom|Jimbo Wales|Jon Harald Søby|Jusjih|Kate|Lar|M7|MaxSem|Millosh|Nick1915|Oscar|Paginazero|Pathoschild|Rdsmith4|Redux|RobH|Shanel|Shizhao|Sj|Spacebirdy|Thogo|Tim Starling|Walter|Wpedzich|Yann|Zirland|';
userSetTip['S'] = ', Стюард';

$(markUsers);

function markUsers(){
 var body, lnk, href, title, mm, user, mark, i, k;
 if (!(body = document.getElementById('bodyContent'))) return;
 var links = body.getElementsByTagName('A');
 for (i=0; i<links.length; i++){
  lnk = links[i];
  if (!lnk.title || ! (mm=lnk.title.match('User:(.*)'))) continue
  user = '|' + decodeURIComponent(mm[1]) + '|';
  for (k in userSet){
    if (userSet[k].indexOf(user) < 0) continue;
    mark = document.createElement('b');
    mark.appendChild(document.createTextNode('(' + k + ')'));
    if (userSetTip[k]) lnk.title += userSetTip[k];
    lnk.appendChild(mark);
  }
 }
}
//</pre>