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

Content deleted Content added
for other wikis
+filter log
 
(2 intermediate revisions by the same user not shown)
Line 3:
mw.util.addPortletLink("p-tb", '/w/index.php?title=Special:Log/protect&page=' + mw.config.get('wgPageName'), 'Protection log', 'plog', 'View this page\'s protection log');
mw.util.addPortletLink("p-tb", '/w/index.php?title=Special:Log/move&page=' + mw.config.get('wgPageName'), 'Move log', 'mlog', 'View this page\'s move log');
mw.util.addPortletLink("p-tb", '/w/index.php?title=Special:Log&page=' + mw.config.get('wgPageName'), 'Page logs', 'palog', 'View this page\'s public logs');
}
 
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');
 
}