Created
November 25, 2016 08:57
-
-
Save ToxicWar/f253a9dcb1cb502ae0f755b0f7d58ce1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const cbNodes = document.evaluate(".//tr[td[contains(text(), 'worker-dev')]]/td[1]", document, null, XPathResult.ANY_TYPE, null); | |
const cbDomNodes = []; | |
let tmpCb = cbNodes.iterateNext(); | |
while (tmpCb) { | |
cbDomNodes.push(tmpCb) | |
tmpCb = cbNodes.iterateNext(); | |
} | |
cbDomNodes.forEach(cb => cb.click()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment