Created
March 24, 2016 04:30
-
-
Save Widdershin/edffdfe492d3207797a7 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
$('.search_result_with_extract').toArray().map(function (result) { | |
var message = $(result).find('.extract_content').text() | |
var date = $(result).parents(".search_message_result").find('.date_links').text().split('•')[1].trim() | |
return date + ': ' + message.trim() | |
}).filter(function (text) { | |
return text.match(/group's topic/) | |
}).join('\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment