Created
December 17, 2022 15:39
-
-
Save dannycreations/b41ce21fe76b1d2c371ef687b9b176ed to your computer and use it in GitHub Desktop.
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
// https://touch.facebook.com/friends/center/requests/outgoing/ | |
var query = '[data-sigil="touchable check m-cancel-request"]' | |
var delay = prompt('Delay in second:', '1') | |
var amount = prompt('Amount looping:', '100') | |
if (delay && amount) { | |
var i = 0, tempi = 0 | |
var find = document.querySelectorAll(query) | |
var running = setInterval(function () { | |
if (tempi >= find.length) { | |
tempi = 0 | |
find = document.querySelectorAll(query) | |
console.log(find.length) | |
} | |
if (!find || i >= amount) { | |
console.log(`Success in ${delay * amount} second`) | |
clearInterval(running) | |
} | |
find[tempi].click() | |
i++, tempi++ | |
console.log(`${i}). Success`) | |
window.scrollTo({ left: 0, top: document.body.scrollHeight, behavior: 'smooth' }) | |
}, delay * 1000) | |
} | |
// Mass Auto Click | |
var inputs = document.getElementsByClassName('_2b2p _4jy0 _4jy3 _517h _51sy _42ft') | |
for (var i = 0; i < inputs.length; i++) inputs[i].click() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment