A 316 characters snippet to translate your Twitter timeline
Open your Twitter page then copy and paste this snippet in your browser location bar to translate your Twitter timeline in english :javascript:$.getScript("http://www.google.com/jsapi",function(){google.load("language","1",{callback:function(){$(".entry-content").each(function(){var a=$(this),b=google.language,c=a.html();b.detect(c,function(d){d.language&&b.translate(c,d.language,"en",function(e){e.translation&&a.html(e.translation)})})})}})});
$.getScript('http://www.google.com/jsapi', function() {
google.load('language', '1', {'callback':function() {
$('.entry-content').each(function(){
var $self = $(this), l = google.language, text = $self.html();
l.detect(text, function(r) {
if (r.language) {
l.translate(text, r.language, 'en', function(r) {
if (r.translation) {
$self.html(r.translation);
}
});
}
});
});
}});
});
google.load('language', '1', {'callback':function() {
$('.entry-content').each(function(){
var $self = $(this), l = google.language, text = $self.html();
l.detect(text, function(r) {
if (r.language) {
l.translate(text, r.language, 'en', function(r) {
if (r.translation) {
$self.html(r.translation);
}
});
}
});
});
}});
});
Comment 761
[...] This post was mentioned on Twitter by Stephane Roucheray, Ashutosh Parashar. Ashutosh Parashar said: Cool method to translate tweets to English http://bit.ly/95O82i @JacoKoster thanks for sharing. Now I can keep an eye on you. [...]
Comment 760
In all fairness, anything that makes use of a 40k+ library doesn’t quite deserve to be named in bytes

The question is, how short can you get _without_ using external libraries? If you start the golf, I’ll join ya
See http://qfox.nl/notes/104 for the golf on fade in/out.