Created
July 30, 2017 12:15
-
-
Save arafathusayn/48cfd8088cdc1dea9ac8bbec12a0ca77 to your computer and use it in GitHub Desktop.
When you got so many friend requests on Facebook but you don't like to click on "Confirm" button of each request!
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
setInterval(() => { document.querySelector('div#FriendRequestMorePager > div > a').click() }, 5000) | |
setInterval(() => { | |
document.querySelector('button[class="_42ft _4jy0 _4jy3 _4jy1 selected _51sy"][value="1"][type="submit"]').scrollIntoView() | |
window.scrollBy(0, -100) | |
document.querySelector('button[class="_42ft _4jy0 _4jy3 _4jy1 selected _51sy"][value="1"][type="submit"]').click() | |
}, 1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment