Posts from September 2010.

New Twitter Last Read Tweet Bar Bookmarklet

wp-carousel-20

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);
}();