I'm trying to develop a Fogger application for Todoist (Fogger allows to turn web services into almost Desktop apps on Ubuntu). I would like to display the overdue+today task count as a number (like in the chrome application).
Fogger allows me to create a script that is injected into the website directly. My question is - what will be the easiest way to check if Todoist is already loaded (or wait for it to load and catch an event), and then to obtain the overdue+today count.
You can use https://todoist.com/Agenda/getCount