Adding an "Open all" button to Hotmail for Firefox

Hotmail does not have a "Mark all as read" button. To do something similar, here is a chickfoot trigger script that will add an "Open all" button, which will open all unread messages in Firefox tabs.

To use this you will need Firefox and the Chickenfoot extension.

insert(after('Mas as unread'), new Button("Open all",
function() {
for (m = find(new XPath('//a[@class="TruncateFrom"]'));
     m.hasMatch;
     m = m.next) {
  openTab(m.element);
}
} ))

Add this to your chickenfoot triggers to trigger on http://*.mail.live.com/mail/InboxLight.aspx*. This will add an Open all button after loading the index. The easiest way to do this is paste the code in a chickenfoot script window in the side pane (press F8 to show it) and then click on the + sign on the Triggers page. Use the above address in "When pages match".
And then you are done.