Created
June 24, 2021 14:56
-
-
Save davo/deda62e62286928247d9aadc38dc1434 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
function getButton(node, index) { | |
const btn = node.querySelector(".updates--updateButton--3lvlN"); | |
if (index === 0) { | |
btn.click(); | |
} | |
} | |
function parseUpdates() { | |
[...document.querySelectorAll(".updates--updateRow--3D3bW")].map( | |
(node, index) => { | |
getButton(node, index); | |
parseUpdates(); | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment