-
-
Save emailnjv/b59e91df0cf2a1b388ce04148ae7e54a to your computer and use it in GitHub Desktop.
This file contains 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
let cells = document.getElementsByClassName("delegate-item"); | |
let returnDelegates = []; | |
for (let i in cells) { | |
let inner_lis = cells[i].getElementsByTagName("li"); | |
for (let x in inner_lis) { | |
let inner = inner_lis.innerHTML.trim(); | |
if (inner.indexOf("Is public delegate?") > -1) { | |
let i_tag = inner_lis[x].getElementsByTagName("i"); | |
if (i_tag.classList.contains("text-green")) { | |
returnDelegates.push(cells[i]); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment