Skip to content

Instantly share code, notes, and snippets.

@clochix
Created September 17, 2010 21:25
Show Gist options
  • Save clochix/584985 to your computer and use it in GitHub Desktop.
Save clochix/584985 to your computer and use it in GitHub Desktop.
jQuery(".entry-meta>a:eq(1)").before('<span class="show-conversation"> + </span>');
jQuery("span.show-conversation").live('click', function(){var show=jQuery(this),status=show.parents('.status').eq(0),target=show.next('a').attr('href');
jQuery.get(target, function(data){var body=jQuery(data);var author=body.find('a.screen-name');body=body.find('span.status-body');body.find('span.status-content').prepend(']').prepend(author).prepend('[');body.css({borderTop: "1px solid #EEEEEE", padding: "5px"});body.find(".entry-meta>a:eq(1)").before('<span class="show-conversation"> + </span>');status.prepend(body.parent().html());});});
@clochix
Copy link
Author

clochix commented Sep 19, 2010

This bookmarklet allow to display conversations in context on Twitter.
To use it, create a bookmark linking to the last version of this code, for example : javascript:(function(){var s=document.createElement('script');s.setAttribute('src','https://gist.github.com/raw/584985/6f806da446090e32d208dba629a33cda2eeb1cb1/bklTwitterConv.js');document.body.appendChild(s);})()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment