autopatrol
3,554
edits
mNo edit summary |
mNo edit summary |
||
Line 12: | Line 12: | ||
addOnloadHook(UserGroupsReplace); | addOnloadHook(UserGroupsReplace); | ||
pattag = document.getElementById("patrol"); | |||
if ( wgUserGroups.toString().indexOf('sysop') | if (pattag) { | ||
if ( wgUserGroups.toString().indexOf('sysop') == -1 || wgUserGroups.toString().indexOf('patroller') == -1) { | |||
pattag.setAttribute("style","display:inline") | |||
} | } | ||
} | } |