Wikipedia:WikiProject User scripts/Scripts/Show last diff

From Wikipedia, the free encyclopedia

//

// Originally based on http://en.wikipedia.org/w/index.php?title=User:JesseW/monobook.js&oldid=20755510  
//See [[Wikipedia:WikiProject User scripts/Scripts/Show last diff]]
// addLastDiff
function addLastDiff()
{
    mw.util.addPortletLink('p-cactions', 'http://en.wikipedia.org/w/index.php?title=' + mw.config.get('wgPageName') + "&diff=cur&oldid=prev", 'last', 'ca-last', 'Show most recent diff');
}
if(mw.config.get('wgCanonicalNamespace') != 'Special') $(addLastDiff);

//