Last active
January 5, 2024 10:19
-
-
Save themarcba/9bd91cc2a8fe67e05f8d46b5796f6f41 to your computer and use it in GitHub Desktop.
Accept all requests on an π community
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 acceptInterval = setInterval(() => { | |
const acceptButtons = Array.from(document.querySelectorAll("[role=button]")).filter( | |
(button) => button.textContent === "Approve" | |
); | |
if (acceptButtons.length > 0) { | |
acceptButtons.forEach((b) => b.click()); | |
window.scrollBy(0, window.innerHeight - 100); | |
} else { | |
clearInterval(acceptInterval); | |
} | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment