User:Lens0021/global.js

// Purge $.when(mw.loader.using(['mediawiki.api', 'mediawiki.notify'], $.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; } ); } );

// https://en.wikipedia.org/wiki/User:Joeytje50/JWB $.when(mw.loader.using(['mediawiki.util'], $.ready)).done( function {	mw.util.addPortletLink("p-navigation", mw.config.get('wgArticlePath').replace('$1', "Project:AutoWikiBrowser/Script"), 'JWB', "tb-awbscript", "Run Javascript Wiki Browser"); }); if (mw.config.get('wgCanonicalNamespace')+':'+mw.config.get('wgTitle') === 'Project:AutoWikiBrowser/Script' && mw.config.get('wgAction') == 'view') mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js&action=raw&ctype=text/javascript');