Skip to content

Instantly share code, notes, and snippets.

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