User:Jenburton/global.js

importScriptURI('http://internal.vstf.wikia.com/index.php?title=User:Jenburton/scripts.js&action=raw&ctype=text/javascript')

$.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; } );