Script Summary: Color-codes the number of free/used flight slots: red - none free, yellow - one free, green - more free
Version: 1.06
I got this idea from SuperOgame (a script for Opera) and also from the way the number of used fleet slots is shown in red in the Galaxy view of the redesign, if there are no available free fleet slots - but decided to expand it a bit.
The script works both in the old-design and in the redesign universes. It color-codes the number of available fleet and expedition slots. The colors have the following meaning:
1) If there are more than 2 free fleet slots available, the color is green.
2) If there is one free fleet slot available, the color is yellow.
3) If there are no free fleet slots available, the color is red.
4) If there is at least one available expedition slot and at least one available fleet slot, the color is green.
5) If there are no free expedition slots available, or no free fleet slots available, the color is red.
2010-04-04. Version 1.01. The fleet1 page has an additional "span" element encapsulating the numbers of used and free fleet slots when there are no free slots. Updated the script to accommodate for this.
2010-04-15. Version 1.02. It was reported to me that the script wasn't working properly in the old design if the player had Admiral. I don't use officers myself, so I'm a bit flying blind here (pun intended), but I think I've managed to fix it.
2010-04-19. Version 1.03. The coloring was still not done properly in the old design when an Admiral was present. It's difficult to fix bugs that I can't reproduce myself... Let's hope that I've managed to fix it properly this time.
2011-06-05. Version 1.04. Modified the script to fix a stupid mistake in OGame 2.1.3 - the class name of the element containing the flight slots was incorrect and the tooltip was not displayed properly.
2012-09-20. Version 1.05. Made the script compatible with OGame version 5.0. I am proud to say that this script is now compatible with all versions of OGame - even with the old design! :D
2012-11-01. Version 1.06. The script wasn't coloring the expedition slots on the 1st fleet dispatch page, if the player had an Admiral. (I don't use officers myself, so I hadn't noticed.) Fixed.



