<!-- thumbnail: https://i.sstatic.net/gOxYG.png -->
<!-- version: 2.0 -->
<!-- tag: script api-v2 -->
<!-- excerpt: ChatterBox adds an "inbox" button to the Chat interface. -->
##Screenshot / Code Snippet

![enter image description here][1]

##About

I like StackExchange Chat, and with the feedbots it tends to be pretty easy to keep up with what's going on with the site.  Except for one thing - my inbox.  

So I wrote this userscript that adds an "inbox" button with auto-refresh to the chat interface.  

###License

[BSD 2-clause license.][2]

###Download

To install, visit the [ChatterBox][3] home page. 

The script refreshes your inbox every minute, and shows new items at the top of the list.  The current maximum items that will be displayed is 10.  Click the "inbox" button to toggle display of your inbox, and click "Inbox Cfg" to set relevant options (right now, just your access token).

You'll need an Access Token to use it, which you can get from the home page.  Also, the link to get access tokens is in the "config" popup.  Once you generate a token, push the "Inbox Cfg" button, put the code in the input field, and hit save.  You can then close the config window by pressing "Inbox Cfg" or switch to the inbox view by pressing "Inbox."  The number in the "Inbox" button is the number of unread items you have in your StackExchange Inbox.

###Platform

This has been tested in the latest release versions of Chrome and Firefox.  I'm not doing anything crazy that should be browser specific, so it ought to work in most sane userscript implementations.  Please feel free to report bugs.

##Contact

Me; You can usually find me on [StackApps Chat.][4]

##Code

I stole some "injection" code from [SE Chat Modifications][5], but otherwise I used this as a way to learn more about userscripts.  Hopefully it isn't too terrible for my first time out.  Suggestions are, of course, welcome.

I haven't put the source into any online SCM yet, but you can feel free to use it as you see fit.  I would appreciate attribution if you end up lifting anything significant.

---


If you're looking for something that's a bit more "browser-wide" than this, you might try:

http://stackapps.com/questions/2948/stack-alert-opera-keep-tabs-on-your-inbox-without-needing-to-have-a-stack-ex


  [1]: https://i.sstatic.net/rcxAL.png
  [2]: http://www.opensource.org/licenses/bsd-license.php
  [3]: http://www.withoutthesarcasm.com/stackapps/seci/
  [4]: http://chat.stackexchange.com/rooms/27/stack-apps
  [5]: http://stackapps.com/questions/2105/se-chat-modifications-keyboard-navigation-and-commands-for-chat