Logo

Fabio Ciotoli

  • Archive
  • RSS
  • Ask me anything!

Waiting new Twitter for Mac

Last time I expressed my satisfaction with the new official Twitter for iPhone, but it must be said that also the new site design is excellent.

So waiting for a Twitter for Mac update, I made a “minimal desktop version” using fluid.

These are the userstyle I used:


body
{
	width: 522px !important;
}
.dashboard
{
	display: none !important;
}
.container
{
	width: 550px !important;
}
#page-container
{
	width: 522px !important;
}
.search-icon
{
	display: none !important;
}
.search-input
{
	width: 70px !important;
}
.flex-table-input
{
	width: 95% !important;
	margin-left: 10px !important;
}

While if you want show the number of new unread tweets on dock badge you can use this userscript:


(function () {
    if(window.fluid) {
        updateBadge();
        var intervalID = window.setInterval(updateBadge,1000);
    }
})();

function updateBadge() {
	if (document.getElementsByClassName("new-tweets-bar").length > 0) {
    		var numberOfUnread = document.getElementsByClassName("new-tweets-bar")[0].innerText.match(/\d+/);
    		if (numberOfUnread && numberOfUnread[0] > 0) {
        		window.fluid.dockBadge = numberOfUnread[0];
    		} else {
        		window.fluid.dockBadge = "";
    		}
	} else {
		window.fluid.dockBadge = "";
	}
}

  • 2 months ago
  • Comments
  • Permalink
  • Share
    Tweet

Recent comments

Blog comments powered by Disqus
← Previous • Next →

About

sharing my experiences

Me, Elsewhere

  • @fabiociotoli on Twitter
  • Google
  • My Skype Info
  • Linkedin Profile
  • RSS
  • Random
  • Archive
  • Ask me anything!
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr