Thread:JustLeafy/@comment-168424-20170622190434

You can add the following to Special:MyPage/global.js here on Community Central: /* Purge button to left of page header contrib buttons 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 '); });

I noticed you needed help with a template that does a purge in this thread, so I thought you might find the above JS useful. 