Skip to content

Instantly share code, notes, and snippets.

@Widdershin
Created March 24, 2016 04:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Widdershin/edffdfe492d3207797a7 to your computer and use it in GitHub Desktop.
Save Widdershin/edffdfe492d3207797a7 to your computer and use it in GitHub Desktop.
$('.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