darkt0wn

you can do rightclick on the greasemonkey symbol and open "manage userscripts" then u select Antigame and then u click on edit on the left bottom.Then replace the content of Antigame with my fixed antigame

Here's a little guide I made for a friend to show him what needs to be changed. I did a file compare on the attacked script above and the original to see what was causing the problem, and created a guide to step through the process. I figure it's worth posting here, cause I'm sure the next time Antigame is updated, it will be broken again, and instead of relying on others to fix it, you can now fix it yourself.

1. right click the greasemoneky icon in firefox2. pick Manage User Scripts3. select antigame4. click edit button on bottom5. it should open in a text editor, if it doesn't it probably is asking you which text editor to use... find notepad.exe and use that. If you don't know the location or how to find it paste in %windir%\system32\notepad.exe

6. once it's open in a text editor, search for " this.ogame = true; " without the quotes, and look for: if (document.location.href.match(/http:\/\/.+\.ogame\..+\/game\/index\.php\?page=*/i)) this.ogame = true; else this.ogame = false;

basically you are commenting out the lines using //. this way the script ignores those lines, then you are adding 1 more line. this.ogame = true; which is letting the script run on any url, rather then just ogame server urls. so we can now use it on our bots again.

Here's a little guide I made for a friend to show him what needs to be changed. I did a file compare on the attacked script above and the original to see what was causing the problem, and created a guide to step through the process. I figure it's worth posting here, cause I'm sure the next time Antigame is updated, it will be broken again, and instead of relying on others to fix it, you can now fix it yourself.

1. right click the greasemoneky icon in firefox2. pick Manage User Scripts3. select antigame4. click edit button on bottom5. it should open in a text editor, if it doesn't it probably is asking you which text editor to use... find notepad.exe and use that. If you don't know the location or how to find it paste in %windir%\system32\notepad.exe

6. once it's open in a text editor, search for " this.ogame = true; " without the quotes, and look for: if (document.location.href.match(/http:\/\/.+\.ogame\..+\/game\/index\.php\?page=*/i)) this.ogame = true; else this.ogame = false;

basically you are commenting out the lines using //. this way the script ignores those lines, then you are adding 1 more line. this.ogame = true; which is letting the script run on any url, rather then just ogame server urls. so we can now use it on our bots again.

I'm always a little skeptical of setting things to true. There must have been a reason for the if statement in the first place. But thanks to Memnoch for finding the code segment!Alternatively, if you don't want to always set this.ogame = true you can do it like this: