<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>Hey great script! but you need a bit of error checking for when you reach level 20 for anything. For example if you upgrade your gold mine to 20 it will disappear from the main house build screen. therefor your script will error in the function findLevels(buildingCells)

I would recommend adding an if statement:
if (!buildingCells[&quot;gold mine&quot;].innerHTML.match(levelRegExp)[1]){
};
to check if the node exists.
-jon</body>
  <body-html>&lt;p&gt;Hey great script! but you need a bit of error checking for when you reach level 20 for anything. For example if you upgrade your gold mine to 20 it will disappear from the main house build screen. therefor your script will error in the function findLevels(buildingCells)&lt;/p&gt;

&lt;p&gt;I would recommend adding an if statement:
&lt;br /&gt;if (!buildingCells[&quot;gold mine&quot;].innerHTML.match(levelRegExp)[1]){
&lt;br /&gt;};
&lt;br /&gt;to check if the node exists.
&lt;br /&gt;-jon&lt;/p&gt;</body-html>
  <created-at type="datetime">2006-12-16T05:01:32Z</created-at>
  <forumable-id type="integer">6640</forumable-id>
  <forumable-type>Script</forumable-type>
  <id type="integer">38228</id>
  <topic-id type="integer">12786</topic-id>
  <updated-at type="datetime">2008-11-16T23:45:16Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">18283</user-id>
</post>
