27

I'm usually running many different StackExchange sites in Firefox using tabs (using ReloadEvery to update every 5 minutes). Right now to check for activity, I have to manually click on the tab to see if the envelope is lighted.

How about making the icon on the tab i.e. the title text change in some way, denoting that you have activity on the page?

We already add a message count for the chat tabs, so this shouldn't be very complicated.

Possible Example:

Better Tab Bar

13
  • 15
    @Lance, the first step is admitting that you have a problem.
    – Pops
    Jul 15, 2010 at 19:15
  • 3
    @Popular, I don't think it's my problem, I think it's a problem with the Internet. Please fix it. (Adding chat didn't help me at all). Jul 15, 2010 at 19:19
  • 2
    @Lance, I've heard of "someone on the Internet is wrong " syndrome, but " everyone on the Internet is wrong"? Good luck with that, sir.
    – Pops
    Jul 15, 2010 at 19:21
  • 1
    @Pop: A problem? Don't raise false hopes. He could stop at the first problem he finds ... Jul 15, 2010 at 19:21
  • 12
    This would be a far more compelling feature request if the existing notification icon actually worked. Jul 16, 2010 at 2:08
  • @Craig, valid point. Jul 16, 2010 at 5:35
  • @Lance: Let me know if this reply triggers the script! Sep 21, 2010 at 21:22
  • @The, that worked great! Sep 21, 2010 at 21:27
  • I came here to create a question with this very request in it. +1
    – Kalamane
    Aug 12, 2011 at 1:07
  • @LanceRoberts - Your imageshack link is broken. Any chance you still have access to that? Mar 11, 2012 at 18:50
  • @Kevin, thanks, fixed. Mar 11, 2012 at 21:52
  • Why do you need to check every tab? Use one consolidated account. The notification icon will show up on all sites with the same account.
    – Cole Tobin
    Apr 4, 2013 at 19:51
  • @ColeJohnson, this was written before we had the type of functionality that we have today. I now do it differently with usually two tabs open, but one would work. And the way it's implemented today, they would all notify (and do, since I'm using Fosco's script, which isn't up to date, but kinda works ok). Apr 4, 2013 at 19:57

1 Answer 1

14
+600

Per an idea from Josh in chat, it could be done with a GreaseMonkey style script.

One has been built for this purpose at: http://fosco.com/tab_notifier.user.js

Here's what it looks like (in Firefox):

enter image description here

EDIT: New version for StackExchange Inbox:

// ==UserScript==
// @name           SE Tab Notifier
// @namespace      http://fosco.com
// @description    Update Tab Title when Inbox has content
// @include        http://*.stackexchange.com/*
// @include        http://superuser.com/*
// @include        http://serverfault.com/*
// @include        http://meta.stackoverflow.com/*
// @include        http://stackoverflow.com/*
// ==/UserScript==


var script = document.createElement("script");
script.textContent = "(" + grease.toString() + ")()";
document.body.appendChild(script);

function grease()
{
 var notifyme = function ()
 {
       if ($('#portalLink a.unreadCount').is(':visible')) {
               var x = $(document).attr('title');
               var count = $('#portalLink a.unreadCount').text();
               var len = Math.floor(count/10);
               if (x.substring(0,len+2) != count + ' ') {
                       $(document).attr('title',count + ' ' + x);
               }
       }
 };
 window.setInterval(notifyme, 1000);
}
6
  • I don't think @include http://*.com will work... Sep 21, 2010 at 20:35
  • 1
    You just have to change the include lines to be multiple includes of the form: http://stackoverflow.com/*. I implemented it for all 5 urls, and took the parentheses off of the *. I'll give you the bounty next week. Thanks. Sep 21, 2010 at 21:32
  • @Lance Editing to add a new version for the global inbox.
    – Fosco
    Nov 22, 2010 at 20:41
  • @Lance Updated link to new version.
    – Fosco
    Apr 23, 2011 at 5:17
  • 1
    very cool! consider listing this on stackapps blog.stackoverflow.com/2011/02/stack-apps-and-scripts Apr 23, 2011 at 11:30
  • @Jeff Thanks, and done: stackapps.com/questions/2362/…
    – Fosco
    Apr 23, 2011 at 19:51

You must log in to answer this question.

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