Language independence
|
|
You could make it language-independent by taking the names of the resources at the top of the Building page. Just look for the element with id "resources". It's a table. It's 2nd tr element contains the resource names; you need the innerHTML of its first 3 td elements. And, of course, you have to exclude moons, since nothing is produced there. |
|
|
Ah clever! Thanks! I was going to just try and figure out what the strings'd be for each language and serve them based on the URL. I'll update this script in the next day or two |