User:Gary King/global.js

/*addOnloadHook(function {	// Useful function	function $(element) 	{		return document.getElementById(element);	}	// Wrap the page's contents in a wrapper DIV	var body = document.getElementsByTagName('body')[0];	var skip = document.getElementsByClassName('skiplinkcontainer')[0];	var header = $('WikiaHeader');	var page = $('WikiaPage');	var wrap = document.createElement('div');	wrap.id = 'wrap';	wrap.appendChild(header);	wrap.appendChild(page);	body.insertBefore(wrap, skip.nextSibling);	// Move Main Page sidebar further to the right	if (wgPageName == 'Mass_Effect_Wiki')	{		var divs = document.getElementsByTagName('div');		for (var i = 0; i < divs.length; i++)		{			var div = divs[i];			if (!(div.style.position == 'relative' && div.style.width == '300px' && div.style.cssFloat == 'right' && div.style.clear == 'right'))				continue;			div.className = 'main_page_sidebar';			break;		}	} });*/