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.
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.
Copyright (c) 2010.
The jQuery library, SOApi.js and my code are licensed under the MIT license.
This user script is actively tested on Chrome and Chromium only.
- Write me your feedback on MSO chat mentioning @badp
- Alternatively, email me at email@example.com
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:
- better error handling - reschedule failed requests
- better handling of overlapping
- code refactoring into something that doesn't make you want to puke