Skip to content

Instantly share code, notes, and snippets.

@arafathusayn
Created July 30, 2017 12:15
Show Gist options
  • Save arafathusayn/48cfd8088cdc1dea9ac8bbec12a0ca77 to your computer and use it in GitHub Desktop.
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!
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