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

This is the current revision of this page, as edited by Amorymeltzer (talk | contribs) at 14:30, 7 February 2021 (Amorymeltzer changed the content model of the page Wikipedia:WikiProject User scripts/Scripts/Show last secure diff from "wikitext" to "JavaScript": Page is javascript). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
//<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]]