User:Ilmari Karonen/userrights.js

$(function {    if (wgNamespaceNumber != 2 && wgNamespaceNumber != 3)  // User or User talk        return;    var user = wgTitle.split("/")[0];    var url = wgScript + "?title=Special:Listusers&limit=1&username=" + encodeURIComponent(user);    mw.util.addPortletLink("p-tb", url, "User rights", "t-userrights", "List of user groups for "+user); });