Skip to content

Instantly share code, notes, and snippets.

@fujimura
Created November 19, 2010 08:57
Show Gist options
  • Save fujimura/706269 to your computer and use it in GitHub Desktop.
Save fujimura/706269 to your computer and use it in GitHub Desktop.
fbg.js
function init() {
$('span[data-fb-uid] a').each(function(i){
$(this).one('ajax:success', function(ev, response){
$(this).replaceWith(response);
});
$(this).callRemote();
var a = this;
setInterval(function(){
var v = $(a).html();
$(a).html(v + '.');
if ($(a).html().length > 7) {
$(a).html('.');
}
}, 400);
});
}
$(document).ready(init);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment