User:DarkShadow/monaco.js

function addPurge {  var hist; var url; if (!(hist = document.getElementById('ca-history') )) return; if (!(url = hist.href )) return; if (!(url = hist.href )) return; addPortletLink('page_bar',     url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'),      'Refresh', 'ca-purge', 'Purge server cache', '0'); } addOnloadHook(addPurge);