User:Kotra/vector.js

$(function {    var rights_isAdmin = (mw.config.get('wgUserGroups').toString.indexOf('sysop') != -1);    if (!rights_isAdmin)        return; //Restrict to admins.    if (mw.config.get('wgNamespaceNumber') != "2" && mw.config.get('wgNamespaceNumber') != "3")        return;  // restrict to User and User talk    var title = mw.config.get('wgTitle');    addPortletLink('p-tb', '/wiki/Special:Userrights/'+title, 'User rights', 't-userrights', 'User rights for "'+title+'"'); });