User:Lens0021/global.js

mw.loader.load('//meta.wikipedia.org/w/index.php?title=User:Lens0021/global.js&action=raw&ctype=text/javascript');

// Purge $.when(mw.loader.using(['mediawiki.api'], $.ready)).done( function {	var purge = document.querySelector( '#ca-purge a' );	purge.href = '#';	purge.addEventListener( 'click', function ( e ) { var postArgs = { action: 'purge', titles: mw.config.get( 'wgPageName' ) }; new mw.Api.post( postArgs ).then( function {			location.reload;		}, function  {			mw.notify( mw.msg( 'purge-failed' ), { type: 'error' } );		} ); mw.notify( 'Purging...' ); e.preventDefault; } ); } );