It doesn't make sense to show a badge with 0 in it. It gets me excited unnecessarily.
…options. Options can still be reached by right-clicking the icon and selecting "Options".
…made This way the badge will update on a timer and also when you make moves or look at the little golem pages. The badge will always reflect what you currently know about your little golem games.
The code sets a timer that makes a request to littlegolem. The request then parses out number of games that it's your turn to make a move in and updates the badge text appropriately.
…l pattern for the content script, so it catches games after making a move.