User:Chrs/global.js

$( document ).ready( function { mw.util.addPortletLink( 'p-tb', location.href.replace( location.hash, '' ) + ( location.search ? '&' : '?' ) + 'uselang=qqx', 'Interface debug', 't-ifdebug', 'Reload the current page with message id\'s displayed instead of text' ); });

mw.hook('moremenu.ready').add(function {	if (!mw.config.get( 'wgIsArticle' )) return;	$('#mm-page-purge-cache').on( 'click', function (e) { new mw.Api.post( { action: 'purge', titles: mw.config.get( 'wgPageName' ) } ).then(function {			location.reload;		}, function  {			mw.notify( 'Purge failed', { type: 'error' } );		}); e.preventDefault; });	$('#mm-page-purge-cache-link').on( 'click', function (e) { new mw.Api.post( { action: 'purge', forcelinkupdate: true, forcerecursivelinkupdate: true, titles: mw.config.get( 'wgPageName' ) } ).then(function {			location.reload;		}, function  {			mw.notify( 'Purge failed', { type: 'error' } );		}); e.preventDefault; }); });

mw.loader.load('https://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:Gadget-markblocked.js');

mw.loader.using(['mediawiki.user', 'mediawiki.util', 'mediawiki.api'], function {    mw.loader.load('https://meta.miraheze.org/w/index.php?action=raw&ctype=text/javascript&title=User:Arcversin/MoreMenu.js'); });