User:Quarl/show diff last.js

// User:Quarl/show_diff_last.js - add "diff" tab to do most recent diff

// depends: wikipage.js, addlilink.js

// originally based on http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/Show_last_diff // based on raylu's abbreviation of http://en.wikipedia.org/w/index.php?title=User:JesseW/monobook.js&oldid=20755510

//

function addTab_DiffLast { if (wikiPage.nsSpecialP) return;

var nurl = wikiPage.qurl + "&diff=0"; addTab(nurl, 'Diff', 'ca-last', "Show most recent diff"); }

$(addTab_DiffLast);

//