Skip to content

Instantly share code, notes, and snippets.

@dolpen
Created September 21, 2010 12:30
Show Gist options
  • Save dolpen/589608 to your computer and use it in GitHub Desktop.
Save dolpen/589608 to your computer and use it in GitHub Desktop.
(function(){
$.ajax({
url:"/sent",
cache:false,
success:function(html){
$(html).find('.status-body:eq(0)').each(function(){
$('textarea').val(
'@dolpen DM to '+
$(this).find('strong:eq(0)').text()+
' '+
$(this).find('.entry-content').text()
);
$('.status-update-form').submit();
})
}
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment