Skip to content

Instantly share code, notes, and snippets.

@guibeira
Last active April 17, 2020 13:50
Show Gist options
  • Save guibeira/951554c817092e5541486b3458660e57 to your computer and use it in GitHub Desktop.
Save guibeira/951554c817092e5541486b3458660e57 to your computer and use it in GitHub Desktop.
#Para quem tem que deletar muita msg das dead_queue,
#e tem que selecionar uma a uma quais msg deseja excluir.
#Seus problemas acabaram! abra a fila clique em visualizar e buscar e no console cole isso:
function find_and_delete_many(to_find){
for (let item of to_find) {
console.log(item)
$("div[style='overflow:hidden;white-space:nowrap;']").each(function( index ) {
var text_to_validate = $(this).text()
var n = text_to_validate.search(item);
if (n > 0){
var tr = $(this).closest('tr')[0]
$(tr).find('input[type=checkbox]').each(function(){
$(this).click()
})
}
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment