Wiki143:WikiProject User scripts/Scripts/Show last diff

From Wikipedia, the free encyclopedia
Revision as of 16:26, 18 November 2013 by imported>Waldyrious (← Migration: addOnloadHook → $; addPortletLink → mw.util.addPortletLink; wg* → mw.config.get('wg*');)
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

//

// 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);

//