// set your twitter id and passowrd var twitter_id = 'foo' var twitter_password = 'bar' var tw = new jetpack.lib.twitter.Twit(twitter_id, twitter_password) jetpack.statusBar.append({ html: '', width: 20, onReady: function(widget){ $(widget).click(function() { var w = jetpack.tabs.focused.contentWindow var text = w.prompt('tweet') if (text) { tw.tweet(text, null, function() { jetpack.notifications.show('updated') }) } }) } })