Community Central
Community Central

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
$(function() {
	
	$('#wpAutoApproved').prop('checked',true);
		
	 /* Change RecentChanges layout to not-ugly */
	 /* Remove if https://phabricator.wikimedia.org/T202916 ever gets fixed */
	mw.loader.using("mediawiki.user", function() {
		if ( mw.user.options.get('usenewrc') !== 0 ) {
			mw.loader.load("mediawiki.notify");
			( new mw.Api() ).postWithToken( 'options', {
				action: "options",
				change: "usenewrc=0"
			} ).done( function() {
				mw.loader.using("mediawiki.notify", function(){
					mw.notify( "RecentChanges formatting has been reset.  You may need to change the URL to remove 'enhanced=1'." );
				} );
			} );
		}
	} );
	
	importArticles({
	    type: 'script',
	    articles: [
	    	'u:dev:MediaWiki:ThemeToggler.js',
	        'u:dev:MediaWiki:RemoveLegacyThreads.js'
	    ]
	});

	mw.loader.using('mediawiki.util',function() {
		if (mw.config.get('wgCanonicalSpecialPageName') !== 'Search'
			|| mw.util.getParamValue('scope') !== 'cross-wiki'
			|| parseInt(mw.util.getParamValue('limit')==null?25:mw.util.getParamValue('limit')) > 50) return;
		location.search += '&limit=5000&page=1';
	});
});