Created
September 17, 2010 21:25
-
-
Save clochix/584985 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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());});}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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);})()