MediaWiki:Gadget-Add-purge.js/en
Utseende
// addPurge $( function (){
var x = document.getElementById('ca-history');
if(!x) return;
if(x.children) x = x.children[0].href;
else x = x.childNodes[0].href;
var na = document.createElement('a');
na.href = x.replace(/=history/, "=purge");
na.appendChild(document.createTextNode('Purge'));
var li = document.createElement('li');
li.id = 'ca-purge';
li.appendChild(na);
var tabs = document.getElementById("p-tb").getElementsByTagName('ul')[0];
tabs.appendChild(li);
ta[li.id] = [, 'Slett serverens cache for denne siden'];
// re-render the title and accesskeys from existing code in wikibits.js
// akeytt();
return li;
});