Wikipedia:WikiProject User scripts/Scripts/Show last secure diff

From Wikipedia, the free encyclopedia
//<pre><nowiki>
// 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]] - for the script this was based on
//See [[Wikipedia:WikiProject User scripts/Scripts/Show last secure diff]] - for this script
// addLastSecureDiff
function addLastSecureDiff()
{
    addPortletLink('p-cactions', 'https://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') addOnloadHook(addLastSecureDiff);

// </nowiki></pre> [[Category:Wikipedia scripts]]