Ogame inactivos en rojo

By sylkat Last update Mar 12, 2007 — Installed 16,011 times. Daily Installs: 1, 1, 6, 7, 7, 5, 4, 1, 9, 1, 9, 1, 11, 10, 14, 4, 3, 3, 4, 5, 4, 8, 5, 8, 10, 3, 4, 4, 5, 8, 4, 8
// ==UserScript==
// @name          Inactivos
// @namespace     http://
// @description	  Muestra en rojo los Inactivos
// @include  http://ogame*/galaxy.php*   
// ==/UserScript==

var allElements, thisElement;
var cadena, suma;
allElements = document.getElementsByTagName('span');
for (var i = 0; i < allElements.length; i++) {
    thisElement = allElements[i];
    
	if (thisElement.className.substring(0,8)=='inactive')
		{

		thisElement.style.color = "red";
		
		}
	if (thisElement.className.substring(0,12)=='longinactive')
		{

		thisElement.style.color = "red";
		
		}
}
	
//Script creado por Adelsork.