I wanted to count the number of jobs running on a Hudson server (continuous integration) at work.
Or save this as a browser toolbar bookmarklet:
This line finds the table with id=”projectstatus”, and counts the TR elements inside of it’s TBODY.
At work it said 445 lines, including the table header.
Which means that this hudson server has configured 444 jobs.
How many jobs are on your Hudson servers?
(I am currently relying on the html structure for Hudson version 2.1.2. It may work for other versions as well)