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

From Wikipedia, the free encyclopedia
Jump to: navigation, 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]] - 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=' + wgPageName + "&diff=cur&oldid=prev", 'last', 'ca-last', 'Show most recent diff');
}
if(wgCanonicalNamespace != 'Special') addOnloadHook(addLastSecureDiff);

//