Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function clickAccept() {
document.querySelectorAll('button.artdeco-button--primary').forEach(b => {
if (b.innerText.includes('Accept')) {
b.click()
}
});
}
function loadMore() {
document.querySelector('button.artdeco-button--icon-right').click()
};
const sleep = (ms) => new Promise(res => setTimeout(res, ms))
for (let i = 0; i < 10; i++) {
clickAccept();
loadMore();
await sleep(5000)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment