User:Amitosh.swain/common.js

var pname = encodeURIComponent(mw.config.get('wgPageName')); /* Common Page Actions */

if(wgArticleId) { //is an article mw.util.addPortletLink('p-cactions',wgScript+'?title='+pname+'&action=history', 'History', 'ca-history','View page history'); mw.util.addPortletLink('p-cactions',wgScript+'?title='+pname+'&action=purge', 'Purge', 'ca-purge','Purge server cache'); mw.util.addPortletLink('p-cactions',wgScript+'?title='+pname+'&action=view&diff='+wgCurRevisionId, 'Diff', 'ca-diff','View page diff'); }

mw.loader.load("skins.vector.compactPersonalBar");