13

Screenshot / Code Snippet

Enter image description here

About

I like Stack Exchange 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.

Download

To install, visit the ChatterBox 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 configuration 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 Stack Exchange 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 Stack Apps Chat.

Code

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

Code is available in this GitHub repository (see the directory "seci").


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

Stack Alert [Opera] - Keep tabs on your inbox without needing to have a Stack Exchange site open

5
  • I think it should close when you click anywhere outside it, not just when you click on the button again.
    – John
    Commented Feb 10, 2012 at 17:34
  • @John Noted. I'll work on that for the next release.
    – agent86
    Commented Feb 10, 2012 at 18:44
  • The Access Token request site seems down. Commented Jul 27, 2012 at 21:58
  • @Ullallulloo, thanks for reminding me. I moved all the code and the pages around a while back. You can reinstall the script, or click this link to generate access tokens.
    – agent86
    Commented Jul 28, 2012 at 1:49
  • I've a question about the extension - stackapps.com/questions/3914/…
    – ChrisF
    Commented Feb 7, 2013 at 16:10

2 Answers 2

2

Version 3.1 is available today. New improvements include:

  • A configuration option that will allow you to mark unread items as read when you open your inbox. (This is implemented by loading the inbox in the background and ignoring the result)
  • The "inbox item body" is now shown alongside the title of the post.
  • Some small CSS fixes.
1
  • Version 3.2 released, with John's request incorporated. Clicking anywhere outside the dialog closes it now.
    – agent86
    Commented Feb 12, 2012 at 1:43
0

I released a second version today, which has a much "fancier" style, similar to the Stack Exchange SuperCollider Inbox. Thanks goes to Ronan Forman for suggesting this.

1
  • Version 2.1 released today, with a couple of fixes. Some of the error messages were a bit unclear, and there were ways in which I would hide the the inbox/config tab buttons when they should have been shown.
    – agent86
    Commented Jan 24, 2012 at 16:08

You must log in to answer this question.

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