User:Emma/common.js: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
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)