Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Brendan-33/a0faf50e027d4a72f31decb21012bd38 to your computer and use it in GitHub Desktop.
Save Brendan-33/a0faf50e027d4a72f31decb21012bd38 to your computer and use it in GitHub Desktop.
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