MediaWiki:AdditionalUserTools.js

/* Add extra tools to user profiles */ $(function {   var olds = $(".tabs-container > ul.tabs").html;    var address = "/wiki/Special:Log?user=" + wgTitle;    var adds = " Logs ";    var news = olds + adds;    $(".tabs-container > ul.tabs").html(news); });

if (mw.config.get("wgUserGroups").indexOf('sysop') > -1) { $(function {       var olds = $(".tabs-container > ul.tabs").html;        var address = "/index.php?title=Special%3AUserRights&user=" + wgTitle;        var adds = " User Rights ";        var news = olds + adds;        $(".tabs-container > ul.tabs").html(news);    }); $(function {       var olds = $(".tabs-container > ul.tabs").html;        var address = "/wiki/Special:DeletedContributions/" + wgTitle;        var adds = " Deleted Contributions ";        var news = olds + adds;        $(".tabs-container > ul.tabs").html(news);    }); $(function {       var olds = $(".tabs-container > ul.tabs").html;        var address = "/wiki/Special:Block/" + wgTitle;        var adds = " Block ";        var news = olds + adds;        $(".tabs-container > ul.tabs").html(news);    }); };