User:Terasail/core.js

/*	Created by: Terasail Created on: 09/12/2022 //jshint esnext: false, esversion: 8 $.when( mw.loader.using( 'mediawiki.util' ), $.ready ).then( function {	if (mw.config.get("wgRelevantArticleId") != 0) {		let purge = mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(mw.config.get("wgRelevantPageName"), {action: 'purge'}), 'Purge', 'ca-purge', 'Purge the current page', ,		);		let last = mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(mw.config.get("wgRelevantPageName"), {type: 'revision', diff: 'cur', oldid: 'prev'}), 'Last Diff', 'ca-LastDiff', 'Show the difference bettwen the current and previous page revisions', ,		);	} });

//Auto click purge confirm button if (mw.config.get("wgAction") == "purge") { $('form[action*="action=purge"]').submit; }