Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Script to Unlike Tweets On Twitter In Google Chrome
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