MediaWiki:PurgeOnEdit.js

// Source: https://nookipedia.com/wiki/MediaWiki:Gadget-PurgeOnEdit.js // Author: SuperHamster // tweaked by m3w if( (mw.config.get("wgNamespaceNumber") === 8 || mw.config.get("wgNamespaceNumber") === 10) && (mw.config.get('wgPostEdit') === "saved")) { var api = new mw.Api; api.post({     action: 'purge',      titles: mw.config.get("wgPageName")    }).done(function(data) {}); }