Last active
April 17, 2020 13:50
-
-
Save guibeira/951554c817092e5541486b3458660e57 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#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