User:Legoktm/rfa-voting-history

Look up an editor's RfA votes: https://rfa-voting-history.toolforge.org/

Limitations

 * Comments that contain a list or indents in them aren't parsed properly. Usually they end up in "Unknown" but in rare cases might be misattributed to the wrong user.
 * Courtesy blanked RfAs are not parsed.
 * If a user has been renamed, their previous usernames must manually be looked-up/entered.

How it works
It queries all RfA subpages edited by the user, then fetches the latest revision for each one. It finds the Support/Oppose/Neutral section headers, and then goes through each associated list. For each comment, it discards subcomments, then looks for userpage, user talk, or contributions links. If that matches the user being looked up (or one of their old names), then that vote is selected as the vote and it moves onto the next RfA.

This is not perfect and has bugs, suggestions and patches welcome!