Last active
December 12, 2016 04:57
Star
You must be signed in to star a gist
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
$(".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