Coder Social home page Coder Social logo

delete-twitter-likes's Introduction

Delete Twitter Likes

Use this basic script to delete all your likes on Twitter.

How to use

  1. Sign in to Twitter in Firefox or a Chromium browser
  2. Go to your Profile
  3. Go the Likes section
  4. Open DevTools and go to the 'Console' tab
  5. Copy and paste the following script
setInterval(function(){
var divs = document.getElementsByTagName('div')
var arr = Array.prototype.slice.call(divs)
var hearts = arr.filter(x => x.getAttribute('data-testid') == 'unlike')
hearts.forEach(h => h.click())
window.scrollTo(0, document.body.scrollHeight ||document.documentElement.scrollHeight);
},1000);

FAQs

Twitter says I still have likes

Twitter may show you have any number of likes even if the likes tab says You don’t have any likes yet. It can take days, months, or years for older tweets to reappear in that tab, so just be patient and wait for them to come back.

The script doesn't work!

Twitter is rate limited to 900 requests every 15 minutes, so you will start getting an error after 900 requests. Refresh the page to pause the script, then resubmit the script after 15 minutes.

If you find any other bugs, please submit an issue or pull request for a fix.

Thanks

I grabbed this from a comment on this article and fixed it to work with a copy-and-paste from browser. This repo is for me to remember it easily.

delete-twitter-likes's People

Contributors

lukejones avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.