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

Content deleted Content added
add all page logs
+filter log
 
(One intermediate revision by the same user not shown)
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');
mw.util.addPortletLink("p-tb", '/w/index.php?title=Special:AbuseLog&wpSearchUser=' + uname, 'Filter log', 'blog', 'View this user\'s edit filter log');
 
}