User:Parent5446/MediaWiki/GadgetDiffs.js
/* Diff to previous caption button */
$(function () {
if (!(hist = document.getElementById('ca-history') )) return;
mw.util.addPortletLink('p-cactions', mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' +
wgPageName + "&diff=prev&oldid=" + wgCurRevisionId, '-', 'ca-last', 'Show most recent diff');
});