User:X!/userrights.js: Difference between revisions

Content deleted Content added
*facepalm*
Modify
Line 1:
addOnloadHook(function () {
var rights_isAdmin = (wgUserGroups.toString().indexOf('sysop') != -1);
if (!rights_isAdmin)
return; //Restrict to admins.
if (wgNamespaceNumber != "2" && wgNamespaceNumber != "3")
return; // restrict to User and User talk