Skip to content

Instantly share code, notes, and snippets.

@Jalalx
Last active July 10, 2023 06:45
Show Gist options
  • Save Jalalx/fa9d19874deec2efe3c070d63c3b21ff to your computer and use it in GitHub Desktop.
Save Jalalx/fa9d19874deec2efe3c070d63c3b21ff to your computer and use it in GitHub Desktop.
Delete all twitter likes!

Steps:

  • Login to your Twitter web account.
  • Go to your likes tab in your profile
  • Press F12 (in Chrome and Firefox) and in the Console tab, paste the following code:
// Creates a timer that runs every second...
setInterval(function(){
    // Scroll down by 600px
    window.scrollBy(0, 600);
    
    // Clicks on every div that matches following css query. Twitter might change this 
    // after some time so you can easily update it accordingly. 
    document.querySelectorAll('div[data-testid="unlike"]').forEach(x => x.click());
}, 1000);

Give it enough time and this will automatically clear all of your likes.

@Jalalx
Copy link
Author

Jalalx commented May 15, 2020

By the way, you might get "Something went wrong" error. It's the Twitter API limit. Wait for 15 minutes and try again.

@ripwild
Copy link

ripwild commented May 30, 2020

Dude thank you so much, you are my hero.

@magdyrashwan
Copy link

Thank you very much
Please I want to delete the tweets

@melikeozkxn
Copy link

thanks bro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment