Board Thread:Support Requests - Designing Your Wiki/@comment-28111867-20180926085929/@comment-168424-20181002234331

This might be overkill, but if you want a purge button to show up in the UI, so you don't have to add stuff to the URL, you can add some JS code to your personal global JS.

You would put the following code into Special:MyPage/global.js here on Community Central (you really only need the first chunk; the second chunk if for purge on user pages): /* Purge button to left of page header edit button on modernized UI v2*/ $(function {	var currServer = mw.config.get('wgServer');	var newPageName = wgPageName.replace(/\?/,"%3F");	var newTitle = wgTitle;	if (wgCanonicalNamespace) newTitle = wgCanonicalNamespace + ":" + wgTitle;	$('div.page-header__contribution-buttons > div.wds-button-group > a:first-child').not('#custom-purge').before(' Purge '); }); /* Add Purge button to left of edit button profile page of modernized UI v2*/ $(function {	var currServer = mw.config.get('wgServer');	var newPageName = wgPageName.replace(/\?/,"%3F");	var newTitle = wgTitle;	if (wgCanonicalNamespace) newTitle = wgCanonicalNamespace + ":" + wgTitle;	$('div.WikiaMainContentContainer > div.UserProfileActionButton > nav').not('#custom-purge').before(' Purge '); });