It's just some C# loops, and scanning the DOM for 'a' tags, and then analysing the 'href' attribute on them, and if there's a match, put it in the array. What I wanted to share was the methodology I used to solve the problem.
Seconding this! I wonder if it could be done with some straightforward greasemonkey scripting or something.