Hey guys, so I have a tab for twitter.com open all the time in Chrome and I've written a userscript that checks the document title every so often for new tweets. Since the Twitter web interface automatically checks, it will show (2) Twitter / Home as the title if there are two new tweets. Everything works as I want it to, and right now I have it show me an alert() message, but I would like to provide a more subtle notification. The purpose of this is to be able to "pin" the Twitter tab to just the favicon and still get notifications. I've tried searching for ways to dynamically change the favicon of a page but it doesn't look like Chrome supports that. Do guys have any other ideas for this so it can notify me of new tweets without stealing focus with an alert() box?
Here is the code if anyone is interested:
checkTweets();
function checkTweets()
{
var newTweets = document.title.match(/[\d\.]+/g);
if(newTweets != null)
{
alert(newTweets[0]);
}
setTimeout("checkTweets()", 10000);
}