Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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