Content deleted Content added
Mike Dillon (talk | contribs) No edit summary |
Mike Dillon (talk | contribs) No edit summary |
||
Line 26:
// Add a 'purge' link to the tabs
function addPurge(){
ta['ca-purge'] = ['g', 'Purge the internal cache for this page'];▼
var x = document.getElementById('ca-history');
if(!x) return;
if(x.children) x = x.children[0].href;
else x = x.childNodes[0].href;
addTab(x.replace(/=history/, "=purge"), 'purge', 'ca-purge'
}
runOnLoad(addPurge);
Line 38 ⟶ 39:
// Add a 'last' link to the tabs to show last diff
function doLastDiff() {
var nurl = "http://en.wikipedia.org/w/index.php?title=" + getPname() + "&diff=cur&oldid=prev";
document.___location = nurl
}
function addLastDiff() {
var x = document.getElementById('ca-history');
if(!x) return;
addTab('javascript:doLastDiff()', 'last', 'ca-last', 'Show most recent diff');
}
runOnLoad(addLastDiff);
|