User:EatsShootsAndLeaves/common.js

//Stolen unabashedly from User:TeleComNasSprVen, checks the userrights of the userpage you're on. Please give them credit if you use it function toolboxUserRights { mw.util.addPortletLink('p-tb', mw.config.get('wgServer') + mw.config.get('wgScript') + "?title=Special:ListUsers&limit=1&username=" + wgRelevantUserName, "User rights", "t-userrights", "Show user permissions"); //Check if user exists if ( !mw.config.get( 'wgRelevantUserName' )) { return; } } addOnloadHook (toolboxUserRights);