Script to Unlike Tweets On Twitter In Google Chrome
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
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