Skip to content

Instantly share code, notes, and snippets.

@MorrisJobke
Created January 7, 2019 14:39
Show Gist options
  • Save MorrisJobke/1977531f99ede6b83b2a4ba5297256c6 to your computer and use it in GitHub Desktop.
Save MorrisJobke/1977531f99ede6b83b2a4ba5297256c6 to your computer and use it in GitHub Desktop.
Script to paste in the web dev tools inside drone to sort failed tasks at top
let 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