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

Content deleted Content added
No edit summary
+filter log
 
(7 intermediate revisions by the same user not shown)
Line 1:
if(mw.config.get('wgNamespaceNumber') !== -1) {
mw.util.addPortletLink("p-tb", 'https://en.wikipedia.org/w/index.php?title=Special:Log/delete&page=' + mw.config.get('wgPageName'), 'Deletion log', 'dellog1', 'View this page\'s deletion log');
mw.util.addPortletLink("p-tb", 'https://en.wikipedia.org/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", 'https://en.wikipedia.org/w/index.php?title=Special:Log/blockmove&page=User:' + mw.config.get('wgTitlewgPageName'), 'BlockMove log', 'blogmlog', 'View this userpage\'s blockmove log');
mw.util.addPortletLink("p-tb", 'https://en.wikipedia.org/w/index.php?title=Special:Log/block&page=User:' + mw.config.get('wgTitlewgPageName'), 'BlockPage loglogs', 'blogpalog', 'View this userpage\'s blockpublic loglogs');
}
 
if(mw.config.get('wgNamespaceNumber'"wgRelevantUserName") == 2) {
var uname = mw.config.get("wgRelevantUserName");
mw.util.addPortletLink("p-tb", 'https://en.wikipedia.org/w/index.php?title=Special:Log/block&page=User:' + mw.config.get('wgTitle'), 'Block log', 'blog', 'View this user\'s block log');
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');
 
if(mw.config.get('wgNamespaceNumber') == 3) {
mw.util.addPortletLink("p-tb", 'https://en.wikipedia.org/w/index.php?title=Special:Log/block&page=User:' + mw.config.get('wgTitle'), 'Block log', 'blog', 'View this user\'s block log');
}
 
if(mw.config.get('wgNamespaceNumber') !== -1) {
mw.util.addPortletLink("p-tb", 'https://en.wikipedia.org/w/index.php?title=Special:Log/protect&page=' + mw.config.get('wgPageName'), 'Protection log', 'plog', 'View this page\'s protection log');
}