A Bit Better RTM tweak – hide empty lists in Remember the Milk

How to use Greasemonkey to hide empty lists in Remember the Milk

I use Remember the Milk to keep track of the following:

  • “project-less” tasks that do not require a structure around them
  • tasks that repeat (not one of the strong points of Basecamp et al)
  • tasks that need to be worked on at more specific times

For personal, non-collaborative tasks, I think RTM is pretty clever. There’s no respite though. It gives you quick access to empty lists so you can add things to them easily. This stresses me out. I’m the kind of person that likes it when Basecamp shows me this:

I am not responsible
I am not responsible

The point is, it’s nice to use an interface that understands the intense, forboding pressure you are under, and knows when to hold back and tell you there is nothing to do.

A Bit Better RTM, which cleans up Remember the Milk and moves the lists into a sidebar to the left (amongst other things) started out as a Greasemonkey script, although now there is a Firefox extension too.

I don’t know when I first started using the script but I made a really minor tweak to it that automatically hides empty lists in Remember the Milk which gives me a feeling of success as the, er, list of lists gets smaller. I don’t want to be reminded of all the projects that I have on my plate, especially if there is nothing I need to do to them right now.

(If you need to see those empty lists, change the code so that instead of being hidden, the empty lists are grayed out/in a small font/struck through).

The key is this part of code:

if (tasksCount > 0)
 listItems[i].firstChild.innerHTML = listItems[i].firstChild.innerHTML + " (" + tasksCount + ")";

 listItems[i].style.display = "none";

You can install the script from here:

Hide empty lists in Remember the Milk

I’m pretty sure the original script has now changed a lot, but the one I use still appears to work with RTM so that’s fine with me. Also, I have to confess, I don’t know what happens if there are no incomplete items in any lists, I suspect it looks quite bad.

By Tom Bush

Hi, my name is Tom Bush and this is my site. Welcome :)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.