Biggest ir problem is only start page
the biggest problem with your script is that it only works if the browser is in travian start page. if you are using Farming Machine, or another script that switch outside of the main travian page, your script doesn´t work. Is it possible that you make a new version which address that?
I wouldn't call that a problem, but rather a way to prevent Travian bot detection. For the script to work outside Travian main page, I had to have it to load the main page in the background to update the attack info. That is completely doable, but in order to do that at a random pace, avoiding any type of bot detection, I had to store in memory data from current incoming attacks and simulate when it would be arriving or not. I also had to make sure he didn't conflict with other scripts like Farming Machine, that also accesses to the meeting point to send troops.
I'm saying that this is completely doable, the only caveat is that it will take a considerable amount of time. Time that I will only have in two or three weeks.