New Twitter Last Read Tweet Bar Bookmarklet

fetchit-21

Update: Twitter has now added this to the site and the bookmarklet below is no longer of any use.

Got the new Twitter?
Annoyed that when you click the bar that says ‘x new tweets’ you can’t find the last one you had already read?
Harry Bailey to the rescue.

Update: Now works in Chrome, Safari, Firefox. Anyone checked Internet Explorer?

Drag the following link to your bookmark bar, go to the Twitter page that’s annoying you, click the bookmarklet:

(function(){
$('head').append('<style>.marker{border-top:2px solid #666 !important;</style>');
setInterval(function()
{
	var last_read = $('div.stream-item.last-read');
	if(!last_read.length)
	{
		$('div.stream-item:first').addClass('last-read');
	}
	else if(last_read.prev().length)
	{
		$('div.stream-item.marker').removeClass('marker').removeAttr('style');
		last_read.removeClass('last-read').addClass('marker');
		$('div.stream-item:first').addClass('last-read');
	}
}, 2000);
}();

4 comments.

  1. Harry,

    I tried it, when I clicked the bookmarklet (on new twitter) just got a white screen with “82” (or 59 next time I tried) on it.

    J.

  2. Thanks J,

    What browser / operating system you using?

    Works for me on mac in Chrome and Safari

    Harry

  3. I’m on XP with Firefox 3.6.10. Works fine in Chrome (I like it, I made the border 5px though)

  4. Hi J,

    Thanks for your help.

    Now updated and working in Chrome, Safari and Firefox.

    Harry