Skip to content

Instantly share code, notes, and snippets.

@ozero
Last active December 12, 2016 04:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ozero/aa3a74557c796a276d1b903d5891a333 to your computer and use it in GitHub Desktop.
$(".im_history_message_wrap").each(function(){
var el = $(this);
var date = $(".im_message_date",this).data('content');
var user = $(".im_message_author",this).text();
var reply_from = $(".im_message_reply_author span",this).text();
var reply = $(".im_message_reply_body .im_short_message_text",this).text();
reply = (reply != "")?"( " + reply_from + ": " + reply + " ) : " : "";
reply.replace(/\r/g, "");
reply.replace(/\n/g, "");
var body = $(".im_message_text",this).text();
console.log(date + "\t" + user + "\t" + reply + body);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment