User:JJPMaster/Scripts/g4.js: Difference between revisions

Content deleted Content added
add all page logs
rm weird workaround
Line 7:
 
if(mw.config.get("wgRelevantUserName")) {
var uname = mw.config.get("wgRelevantUserName");
if (mw.config.get("wgCanonicalSpecialPageName") == "Contributions")
uname = mw.config.get("wgTitle").split("/").pop();
else uname = mw.config.get("wgTitle").split("/")[0];
mw.util.addPortletLink("p-tb", '/w/index.php?title=Special:Log/block&page=User:' + uname, 'Block log', 'blog', 'View this user\'s block log');
}