Skip to content

Instantly share code, notes, and snippets.

@MorrisJobke
Last active November 28, 2018 22:03
Show Gist options
  • Save MorrisJobke/4239f5f454674b48cd332444aca1b081 to your computer and use it in GitHub Desktop.
Save MorrisJobke/4239f5f454674b48cd332444aca1b081 to your computer and use it in GitHub Desktop.
Sorts failed steps in drone at the top
var parent = document.querySelectorAll('[class*="matrix__list"]')[0];
if (parent) {
document.querySelectorAll('[class*="status_number__failure"]').forEach(item => parent.prepend(item.parentNode.parentNode.parentNode));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment