User:FabianLars/global.js

importArticles({   type: 'script',    articles: [        'u:dev:AjaxBatchDelete/code.js',        'u:dev:MediaWiki:WHAM/code.2.js',        'u:dev:MediaWiki:PurgeButton/code.js',    ] });

( function ( $, mw ) {   function purgePage  {        var page = encodeURIComponent( mw.config.get( 'wgPageName' ) );        $.get( '/index.php?title=' + page + '&action=purge', function  { location.reload( true ); } );       $('html,body').css( { display: 'block', overflow: 'hidden' } );       $( ' ' ).appendTo( document.body )        .css( 'height', $( window ).height );    }    if ( !$("body").hasClass("editor") ) {        $(document).keydown(function(event) { if( (event.ctrlKey || event.metaKey) && event.shiftKey && event.which == 186 ) { purgePage; }       });    } } ( jQuery, mediaWiki ) );