User:Jenburton/global.js

$.ready( function {	var FzyDate = new Date;	/*sunday=0, monday=1, tuesday=2,...*/	if(FzyDate.getDay == 2)	{		/* g2g */		var FzyHost = window.location.host;	} else {		return false;	}	/* check to make sure we're not already ON preview */	var prepat = /^preview\./i;	if( prepat.test(FzyHost) ) {		return false;	}	var incpat = /\.wikia-inc\.com$/i	/* we are NOT on preview, check to make sure we're not on wikia-inc */	if( incpat.test(FzyHost) ) {		return false;	}	/* all good, change host */	window.location.host = 'preview.' + FzyHost;	return true; } );