autopatrol
3,554
edits
No edit summary |
mNo edit summary |
||
Line 4: | Line 4: | ||
* By setting a datalet true it shows in the header instead of the title. | * By setting a datalet true it shows in the header instead of the title. | ||
* Note, all are assumed false if omitted. All but 'groups' are assumed false if undefined. | * Note, all are assumed false if omitted. All but 'groups' are assumed false if undefined. | ||
*/ | |||
var showUserGroupSettings = { | var showUserGroupSettings = { | ||
'IP':true, | 'IP':true, | ||
Line 14: | Line 15: | ||
'blocked':true | 'blocked':true | ||
}; | }; | ||
if((wgNamespaceNumber == 2 || wgNamespaceNumber == 3) && wgTitle.indexOf('/') == -1 && (wgAction != 'edit' || wgAction != 'submit')) addOnloadHook(showUserGroups) | if((wgNamespaceNumber == 2 || wgNamespaceNumber == 3) && wgTitle.indexOf('/') == -1 && (wgAction != 'edit' || wgAction != 'submit')) addOnloadHook(showUserGroups) |