Skip to content

Instantly share code, notes, and snippets.

@benfavre
Created February 7, 2013 12:36
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 benfavre/4730638 to your computer and use it in GitHub Desktop.
Save benfavre/4730638 to your computer and use it in GitHub Desktop.
Mailjet: Supprimer des adresses d'expédition en masse
// Use this script in the dev tools console in Google Chrome
// You might have to run it multiple times and refresh the page each time
table = $($0); // Select table with mail list in inspector
count = 0;
$('tr', table).each(function() {
row = $(this);
link = $('ul.dropdown-menu li:last-of-type a', row);
link_status = row.find(':nth-child(6)');
count = count+1;
if(link_status.text() == 'En attente') {
window.open(link.attr('href'), count);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment