MediaWiki:Gadget-purgetab.js
From Wikinews, the free news source you can write!
Note: After saving, you may have to bypass your browser's cache to see the changes. Mozilla / Firefox / Safari: hold down Shift while clicking Reload, or press Ctrl-Shift-R (Cmd-Shift-R on Apple Mac); IE: hold Ctrl while clicking Refresh, or press Ctrl-F5; Konqueror: simply click the Reload button, or press F5; Opera users may need to completely clear their cache in Tools→Preferences. — More skins
/* Purge caption button */ addOnloadHook(function () { var hist; var url; var actionPortlet = "p-cactions"; var purgeText = (skin === "vector" ? "Purge (*)" : "*"); if (!(hist = document.getElementById('ca-history') )) return; if (!(url = hist.getElementsByTagName('a')[0] )) return; if (!(url = url.href )) return; addPortletLink(actionPortlet, url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'), purgeText, 'ca-purge', 'Purge cache', '*'); });
