(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This will automatically push the confirm button on the purge page for you:
if ( mw.config.get( 'wgAction' ) === 'purge' ) {
$('form[action*="action=purge"]').submit();
}
Idk if this is optimized or not. Bonketh (talk) 18:33, 24 November 2018 (UTC)