Content deleted Content added
Pythoncoder (talk | contribs) m Todo |
Pythoncoder (talk | contribs) add intadmin from amory's code |
||
Line 52:
$.getJSON(mw.config.get('wgScriptPath')+'/index.php?action=raw&ctype=application/json&title=User:Bellezzasolo Bot/userhighlighter.js/ptusr.js', function(data){
ptdata = data;
}),
$.getJSON(mw.config.get('wgScriptPath')+'/index.php?action=raw&ctype=application/json&title=User:Amorymeltzer/crathighlighter.js/interface-admin.json', function(data){
).then(function() {▼
iadata = data;
▲ })).then(function() {
ADMINHIGHLIGHT_EXTLINKS = window.ADMINHIGHLIGHT_EXTLINKS || false;
ADMINHIGHLIGHT_NAMESPACES = [-1,2,3];
Line 65 ⟶ 67:
mw.util.addCSS("[class~=userhighlighter_checkuser] {background-color: #9df}");
mw.util.addCSS("[class~=userhighlighter_oversight] {background-color: #888}");
mw.util.addCSS("[class~=userhighlighter_interface-admin] {background-color: #9fd}");
mw.util.addCSS("[class~=userhighlighter_bureaucrat] {background-color: #fd9}");
mw.util.addCSS("[class~=userhighlighter_arbcom] {background-color: #f99}");
Line 87 ⟶ 90:
if(crdata[user] == 1) {
link.addClass(link.attr('class') + ' userhighlighter_bureaucrat');
}
if(iadata[user] == 1) {
link.addClass(link.attr('class') + ' userhighlighter_interface-admin');
}
if(osdata[user] == 1) {
|