// ==UserScript==
// @name           Matrix by Crazysouls.com !
// @namespace      www.crazysouls.com
// @description    Skin for orkut.com
// @include        http://www.orkut.com/*
// @author	   Jacques - improved by Qasim
// @dedicated	   -
// ==/UserScript==

/*
 *
 * Blackut - v.Phoenix
 * 12/10/2006
 * 
 * 
 * All credits go to Jacques for developing blackut
 * 
 * Displayed and improved by www.crazysouls.com 
 *
 *
 */


function toBlackut(){


	/*
	 * Inserindo novo CSS..
	 */

	var head=document.getElementsByTagName('head').item(0);
	link=document.createElement('link');
	link.href='http://geocities.com/zcelo/matrix.css';
	link.type='text/css';
	link.rel='stylesheet';
	link.defer=true;
	head.appendChild(link);

	/*
	 * Removendo o Universal search que destorce tudo..
	 */

	document.getElementsByTagName("td")[1].width="134";
	document.forms[0].innerHTML="";

	/*
	 * Trocando algumas imagens..
	 */

	for(i=0;i<document.getElementsByTagName("img").length; i++){
		if(document.getElementsByTagName("img")[i].src.match(/bl.gif/gi))
			document.getElementsByTagName("img")[i].src="http://jacquesbsj.googlepages.com/e.png";
		if(document.getElementsByTagName("img")[i].src.match(/br.gif/gi))
			document.getElementsByTagName("img")[i].src="http://jacquesbsj.googlepages.com/d.png";
		if(document.getElementsByTagName("img")[i].src.match(/tr2.gif/gi))
			document.getElementsByTagName("img")[i].src="http://jacquesbsj.googlepages.com/tr2.gif";
	}
	for(i=0;i<document.getElementsByTagName("td").length; i++){
		if(document.getElementsByTagName("td")[i].style.background.match(/bm.gif/gi)){
			document.getElementsByTagName("td")[i].style.background="url(http://jacquesbsj.googlepages.com/m.png);";
		}
	}
	for(i=0;i<document.getElementsByTagName("span").length; i++){
		if(document.getElementsByTagName("span")[i].style.color.match(/153/gi)){
			document.getElementsByTagName("span")[i].style.color="#DDDDDD";
		}
	}
	document.getElementById("path").style.color="#000000";

}

/*
 * E aplicando isso tudo :D
 */

toBlackut();
