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

Screenshot

About

This userscript, based on SOApi.js, injects itself in all SE sites' chat pages and polls the API for reputation changes every 60 seconds.

When your reputation changes, this is announced at the top of the page.

SO Live! Chat Edition uses the same notification system chat uses.

If you are on a StackExchange-themed chatroom, updates are not fetched.

API calls use detail

Exactly one API call is made per tab per 60 seconds, starting from the 60th second spent on the window. Hence, if you're quickly flipping through pages no call is made. This may still eat your thousand requests per day pretty fast if you leave many tabs open.

Technically, no two identical requests are sent, unless by multiple tabs indipendently or one of them fails for any reason.

Demo

To "demo" what happens when a reputation change is detected, go to the SE site you visit the most and paste this in the javascript console:

_start_SO_Live_debug()
SO_Live_demo()

This will make the userscript behave as if all rep changes that you had in the last month happened in the last 60 seconds. The reputation score is not reset to its actual value after this.

License

Copyright (c) 2010.

The jQuery library, SOApi.js and my code are licensed under the MIT license.

Download

Platform

This user script is actively tested on Chrome and Chromium only.

However, it should also run on Firefox through Greasemonkey, Opera (setup how-to). If this works on Internet Explorer through Trixie, all the better.

Contact

  • Write me your feedback on MSO chat mentioning @badp
  • Alternatively, email me at badpazzword@gmail.com

Code

The code is in this git repository. Click Fork and get hacking!

Patches/forks welcome. Here are some ideas for improvement, in order of priority:

  1. better error handling - reschedule failed requests
  2. better handling of overlapping lightweight_notify() calls
  3. code refactoring into something that doesn't make you want to puke
share|improve this question
    
If you don't use chat much, you can get the regular edition. –  badp Oct 30 '10 at 16:11
2  
+2 for the script -1 for the title of the post –  systempuntoout Oct 30 '10 at 16:12
    
@system it was an inside joke for the guys on the MSO Tavern. –  badp Oct 30 '10 at 16:20
1  
+1 for the neat idea. –  Nathan Osman Oct 30 '10 at 16:50

You must log in to answer this question.

Browse other questions tagged .