This user script adds a short overview table at the of the election page during the primary election phase on Stack Exchange moderator elections. The table lists all candidates, ordered by their current primary vote score, along with their user information.

The purpose of this is to allow keeping an eye on the votes of ongoing elections which the default interface and (deliberately) unsorted candidate list does not allow for.


The following is an example of the user script in action for election 6 on Stack Overflow:

Example view for election #6

Install and source


  • 1.5.x: Added support for other Stack Exchange sites.
  • 1.4.x: Added the ability to query the vote count for users that have access to the tools. Also added support for https.
  • 1.3.x: Updated for new election style (as used on Stack Overflow in April 2015)
  • 1.2.x: Display withdrawn users differently
  • 1.1.x: Display user rank, reputation and flag count; visual changes; support for Scriptish’ auto-updates
  • 1.0.x: Initial release
  • Has something changed? It isn't working for me this time. (It worked until the last elections) Commented Mar 19, 2018 at 20:12
  • @BhargavRao Apparently, they changed the code slightly. Fixed it in v1.4.5.
    – poke
    Commented Mar 19, 2018 at 20:34
  • Hmm, something is broken. I'm pretty sure that I could expand the score into pos/neg when I clicked on them. It is not working for me now. Commented Mar 12, 2019 at 2:13
  • @BhargavRao You’re right, I missed that last night when I fixed the script. It should work now again.
    – poke
    Commented Mar 12, 2019 at 20:49

5 Answers 5


The https://stackoverflow.com/election isn't matched.

In addition to:

// @include        https://stackoverflow.com/election/*

it should list

// @include        https://stackoverflow.com/election


You should probably add more include patterns for the other stacks.
If you use:

// @match       *://*.askubuntu.com/election*
// @match       *://*.mathoverflow.net/election*
// @match       *://*.serverfault.com/election*
// @match       *://*.stackapps.com/election*
// @match       *://*.stackexchange.com/election*
// @match       *://*.stackoverflow.com/election*
// @match       *://*.superuser.com/election*

instead of those 2 @includes, in the script; it will work for all SE sites -- like Information Security, for example.

  • Took the liberty of modifying your proposal to a single @match directive. @match performs better and has smarter and "safer" wildcard matching than @include. ... Roll the edit back, if you don't like it. Commented Jul 21, 2015 at 20:22
  • Very good. I'm not an expert on user scripts after all. Good job.
    – M'vy
    Commented Jul 21, 2015 at 20:23
  • Oops. Forgot a few SE sites. Edited in the standard SE @match set. Commented Jul 21, 2015 at 20:25
  • No idea why I never got to do this earlier but it’s done now in 1.5. Thanks for the suggestions!
    – poke
    Commented Mar 6, 2019 at 1:02


Can the table be updated to show a cut-off line? Highlight the top 10 or put a (dotted?) line between the top 10 and the rest of the pack, to show who is going to go through without manually having to count.

  • Done! Added some styles and other stuff in v1.1.0.
    – poke
    Commented Feb 19, 2014 at 15:34


Not matching HTTPS protocol requests. Simply change http://... to *://... in the @match annotations.

  • 1
    @poke The new vote feature uses HTTP, which fails on HTTPS :P Best to simply omit the protocol and host when doing AJAX to the same domain. (Line 69) Commented Apr 13, 2015 at 22:34
  • Haha, oops! Totally forgot about that – fixed now ^^
    – poke
    Commented Apr 13, 2015 at 22:37


'.votecell .vote-count-post' needs to be changed to '.votecell .js-vote-count' for the new post layout on L45

  • No idea how you found this out this early, but thanks a lot! :D
    – poke
    Commented Mar 6, 2019 at 1:02
  • 1
    Found out while visiting the previous election Commented Mar 6, 2019 at 1:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .