Last active
May 22, 2023 21:48
-
-
Save Brendan-33/a0faf50e027d4a72f31decb21012bd38 to your computer and use it in GitHub Desktop.
Script to Unlike Tweets On Twitter In Google Chrome
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
javascript: | |
var tweetsUnliked = 0; | |
for (let i = 0; i < 100; i++) { | |
var unlikeButton = $("div[data-testid='unlike']"); | |
window.scrollBy(0, 10000); | |
if (unlikeButton === null) { console.log("The next liked tweet was not found, please scroll down and run the script again.");} | |
else { console.log("Found Tweet to Unlike")} | |
unlikeButton.click(); | |
tweetsUnliked++; | |
console.log(`Unliked Tweets: ${tweetsUnliked}`); | |
window.scrollBy(0, 10000); | |
window.scrollBy(0, 10000); | |
window.scrollBy(0, 10000); | |
window.scrollBy(0, 10000); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment