User:IAlex/modern.js

function PurgeTab { if (wgNamespaceNumber >= 0) addPortletLink('p-cactions', wgScript + '?title=' + wgPageName + '&action=purge', 'purge', 'ca-purge', '', 'p'); } addOnloadHook( PurgeTab );