User:Liangent/common.js

( function( $, mw ) { mw.loader.using( [ 'mediawiki.util' ], function { if ( mw.config.get( 'wgNamespaceNumber' ) == 2500 && mw.config.get( 'wgAction' ) == 'view' && location.search.indexOf( 'vewhitelist' ) == -1 ) { if ( location.search ) { location += '&vewhitelist'; } else { location += '?vewhitelist'; }   } } ); } )( jQuery, mediaWiki );