Skip to content

Instantly share code, notes, and snippets.

@davo
Created June 24, 2021 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davo/deda62e62286928247d9aadc38dc1434 to your computer and use it in GitHub Desktop.
Save davo/deda62e62286928247d9aadc38dc1434 to your computer and use it in GitHub Desktop.
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