Last active
November 1, 2024 00:54
-
-
Save moeamaya/a6e8669c818b968312eda163327a92c4 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
// Note this is against Twitter's Terms of Service, so it's just for fun :) | |
const btns = Array.from(document.querySelectorAll('[data-testid]')) | |
const unfollows = btns.filter(btn => btn.textContent == "Following") | |
for (let i = 0; i <= unfollows.length; i++){ | |
setTimeout(function () { | |
unfollows[i].click(); | |
setTimeout(function () { | |
const confirm = document.querySelector('[data-testid="confirmationSheetConfirm"]'); | |
confirm.click() | |
}, 1000) | |
}, i*1000) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment