don`t remember state
![]() ![]() |
привет
заранее спс |
![]() ![]() |
In order to make it remember its state (open or closed), I have to store this value somewhere between screen refreshes (i.e., between different invocations of the script). There are basically two ways to do that: by using GM_SetValue (but then the script will stop working under Opera) and a cookie (but then the script will be detectable and, in general, if you have too many OGame site-related cookies, the game will start logging you out with an "invalid session" message). So, I don't like either solution. However, you can configure how the script starts (i.e., always open or always closed) by modifying the "expanded" variable near the beginning. I've set it to "false", so the script starts closed. If you set it to "true" (no quotes), it will start expanded. Of course, clicking the title ("Resources in flight") will still toggle the state of the script. |
![]() ![]() |
Thank you for your answer.
P.S.
|
![]() ![]() |
Hi Vess, your work is very good.
|

