User:Emma/common.js: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
m
no edit summary
mNo edit summary
mNo edit summary
Line 12: Line 12:
  addOnloadHook(UserGroupsReplace);
  addOnloadHook(UserGroupsReplace);


$( function() {
pattag = document.getElementById("patrol");
   if ( wgUserGroups.toString().indexOf('sysop') != -1) {
if (pattag) {
  importStylesheetURI(wgServer +"/User:Matt/patrolclassnone.css&ctype=text/css&action=raw");
   if ( wgUserGroups.toString().indexOf('sysop') == -1 || wgUserGroups.toString().indexOf('patroller') == -1) {
    pattag.setAttribute("style","display:inline")
   }
   }
});
}
autopatrol
3,554

edits

Navigation menu