A Greasemonkey Script for Lost Fanatics

There has been something of a revolution taking place on aint it cool news recently in the talkback for the Season 3 Lost finale. The fans have been posting to it since the end of May and plan to continue doing so until the fourth season airs. I've been a part of it at varying levels of commitment since it started and I also love writing Javascript code.

As time goes on the posts count decreases so we don't show up on the top ten listing aint it cool provides on the talkback pages. So I wrote a greasemonkey script that parses the page using xpath and appends a slightly fancy summary below the top ten listing on the right of the page. It's slightly useful on any page but particularly helpful on pages which don't get a lot of traffic but have devoted readers.

A caveat regarding the script is that it's damn slow when they're a huge DOM to walk through (even using XPath) but them's the break. Here's the user script.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
3 + 3 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.