Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

Screenshot

About

The vote counts are a great tool to determine whether an answer is disputed or not. Unfortunately, not many of us have enough time to join all Stack Exchange websites and get 1000 reputation.

This script unlocks the "View Vote counts" feature for those who are not logged in or don't have 1k reputation. The look and feeling of the feature is identical to the original one.

Recognises posts at questions, question lists, /review/ pages and search results.

License

Creative Commons 3.0 SA - Same as footer. You may modify and distribute this script S, provided that you mention the original author of the script A.

Download

The code is available in three forms:

Platform

The code is OS-independent. It should at least work in the following browsers:

  • FireFox 3.0 - 31
  • Opera 9.00 - 12.00
  • Chrome 1 - 40
  • Internet Explorer 7 - 10
  • Safari 3.2 - 5.1

Contact

Please send your feedback to rob@robwu.nl.

Code

This script is written in JavaScript and a bit of jQuery. It depends on the Stack Exchange API (v2, JSONP).

When the Vote counts feature is disabled, the Vote counts buttons don't have a tooltip. The script checks for the existence of the tooltip, and adds the feature when necessary. If the tooltips already exist, the script does not add any visible modifications to the page.

A detailed explanation of the code is listed in the source code (direct link, or via the overview page). The change log is listed at the overview page.

share|improve this question
    
Seems buggy. Screws with upvote and downvote buttons. Count breaks if you mess with screwed up upvote and downvote buttons. But, it does what it's supposed to... thanks :) –  GGG Feb 6 '12 at 21:55
    
@GGG I have uploaded a new version, which adds a CSS-fix for IE7-. Do you still observe the bug? If yes, please specify your browser version and OS. –  Rob W Feb 6 '12 at 23:18
    
Yep, it's still messed up. Click the vote count, then click vote up a few times, then click the vote count again. I'm using a somewhat old chromium on a somewhat old ubuntu. 16.0.912.75 (Developer Build 116452 Linux) Ubuntu 11.04 –  GGG Feb 7 '12 at 1:22
    
@GGG Updated and uploaded code. Now, you can also show vote counts after voting. I notice that, after voting, the SE API does not necessarily show the newest vote counts. After a few minutes, the requested counts are correct, though. This might be a bug in the SE API. –  Rob W Feb 7 '12 at 16:05
    
It appears to be mostly fixed. There seems to be a problem where it appears to let you remove upvotes after the time for removing them has passed. Of course they aren't actually removed, but have the appearance of being removed. That's pretty trivial though. Nice work :) –  GGG Feb 7 '12 at 19:04
3  
Nice work, Rob! If you wanted, you could save some bytes by omitting type="text/css" on the <style> element — it’s optional in HTML5 anyway, and it still works in all browsers without. –  Mathias Bynens Feb 13 '12 at 12:50
1  
Good script. Makes me wonder, if the information is available via the API anyway, then why does SE hide it? –  user2428118 Oct 3 '12 at 14:11
3  
@user2428118 See Jeff's answer at meta.stackoverflow.com/a/1007/169101. –  Rob W Oct 3 '12 at 14:57
    
@RobW Installed it on Chrome 23.0.1271.97 (stable) and it doesn't seem to work at all :( –  Paul T. Jan 4 '13 at 15:12
    
@PaulT. Works fine here. If you're trying it in incognito mode, you have to check the tick before "Allow in incognito" at chrome://extensions/. –  Rob W Jan 4 '13 at 15:16
2  
@RobW My apologies, I didn't realize that you had to click on the counters for the upvotes/downvotes to appear. I assumed it would automatically replace all the counters. But no matter, this is a great extension! Thanks :) –  Paul T. Jan 4 '13 at 15:44
    
Took me a minute too @PaulT. –  Scott Beeson Jun 11 '13 at 15:30
    
Just had the thought, I'd certainly like to use an app/script which would alert me to any questions/answers that have been downvoted with no comment given so I could counter it and upvote them since that form of downvoting practice doesn't help out the user who posted the question/answer thus fails to support the community. –  Myzifer Jun 14 '13 at 12:59
3  
@Myzifer Don't practice pity upvoting, that's harmful. If you get alerted of all downvotes, your computer would explode on Stack Overflow, given the huge volume of questions. Lots has already been said about this topic, just search for "pity upvoting" or "sympathy upvoting" on meta.stackoverflow.com. –  Rob W Jun 14 '13 at 13:13
1  
@DImension10AbhimanyuPS Added Mathoverflow.net to list of sites. –  Rob W Sep 5 '13 at 10:55

3 Answers 3

Bug report ()

It doesn't work for the new Stack Overflow em Português.

The following @match entries in the script:

// @match          http://stackoverflow.com/questions/*
// @match          http://meta.stackoverflow.com/questions/*
// @match          http://stackoverflow.com/review/*
// @match          http://meta.stackoverflow.com/review/*
// @match          http://stackoverflow.com/search*
// @match          http://meta.stackoverflow.com/search*

Should be changed to:

// @match          http://*.stackoverflow.com/questions/*
// @match          http://*.stackoverflow.com/review/*
// @match          http://*.stackoverflow.com/search*

This will catch SO and SOpt and their respective Meta sites.

share|improve this answer
1  
Thanks for reminding me, I've just updated the extension and uploaded the updated script to Greasyfork: greasyfork.org/en/scripts/…. –  Rob W Oct 31 at 21:18
    
Bravo, spreading the word, I mean, espalhando a notícia :) –  brasofilo Oct 31 at 21:27

Bug Report ()

  • Go to a tag page, for example this one.
  • You will see a question, such as this:
  • Find the vote and answer count on the left.
  • Click the vote count.
  • You will then get a message in the error console that says Post ID not found! Please report this at http://stackapps.com/q/3082/9699

So now I'm reporting it.

share|improve this answer
    
Thanks for reporting, I've even forgotten that I've added that link to the error message. Turns out to be useful ;) I'll check it out later. –  Rob W May 22 '13 at 13:17
    
Fixed :) The last update (v1.5.3) introduces a feature which is not even available to 1k+ users: View vote totals at the questions list and search results. –  Rob W May 23 '13 at 9:54

Feature Request

Can we get a setting to show the counts automatically without clicking?

share|improve this answer
10  
Automatically showing up/down votes puts lots of load on the Stack Exchange API, so I'm probably not going to add the feature. Besides, the net vote count is usually the most interesting number. Downvotes are only relevant if you want to see whether the contents of a post are disputed. –  Rob W Jun 11 '13 at 15:42
    
Thanks. Care to respond to this: meta.stackoverflow.com/questions/183981/… ??? –  Scott Beeson Jun 11 '13 at 15:45

You must log in to answer this question.

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