Skip to content

Instantly share code, notes, and snippets.

@Widdershin
Created March 24, 2016 04:30
Show Gist options
  • Select an option

  • Save Widdershin/edffdfe492d3207797a7 to your computer and use it in GitHub Desktop.

Select an option

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