User:AStranger195/global.js

importArticles({    type: "script",     articles: [         "w:c:dev:RevealAnonIP/usercode.js"     ] }); importScriptPage('PurgeButton/code.js', 'dev'); // if user blog, test if the current user owns the blog; if yes proceed, if not abort if ( [ 500, 502 ].indexOf( mw.config.get( 'wgNamespaceNumber' ) ) !== -1 ) { var user = mw.config.get( 'wgUserName' ); if ( mw.config.get( 'wgTitle' ).slice( 0, user.length ) !== user) { return; } }

/* Replaces with the name of the user browsing the page. Requires copying Template:USERNAME. */ $(function {   if (window.disableUsernameReplace || mw.config.get('wgUserName') === null) return;    $('span.insertusername').html(mw.config.get('wgUserName')); }); /* End of the replacement */