Difference between revisions 124335 and 124336 on gomwiki

/*  _____________________________________________________________________________
 * |                                                                             |
 * |                    === WARNING: GLOBAL GADGET FILE ===                      |
 * |                  Changes to this page affect many users.                    |
 * | Please discuss changes on the talk page or on [[WT:Gadget]] before editing. |
 * |_____________________________________________________________________________|
 *
 * Redirects to the 2015 redesigned Main Page
 */

if ( ( mw.config.get( 'wgPageName' ) == 'Main_Page' ) && ( mw.util.getParamValue( 'redirect' ) != 'no' ) ) ) {
	window.location = '//en.wikipedia.org/wiki/Wikipedia:Main_Page_(2015_redesign)';
}
$( document ).ready( function () {
	$( 'a[href="/wiki/Main_Page"]' ).attr( 'href', '/wiki/Wikipedia:Main_Page_(2015_redesign)' );
} );