Skip to content

Instantly share code, notes, and snippets.

@balupton
Last active January 5, 2021 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balupton/74e74eb614f3c7df8d4ffa5dc33856a6 to your computer and use it in GitHub Desktop.
Save balupton/74e74eb614f3c7df8d4ffa5dc33856a6 to your computer and use it in GitHub Desktop.
Wipe Twitter Likes

Wipe Twitter LIkes

  1. Go to https://twitter.com/YOURUSERNAME/likes
  2. Open Web Inspector
  3. Run the following, eventually you will get 429 and 500 errors when rate limits hit, in which case give up and try later
setInterval(() => {
  /* if twitter has buggered up due to rate limits (unliked tweets are showing up in liked), then like them so you can unlike them */
  for (const d of document.querySelectorAll('div[data-testid="like"]')) { d.click(); d.remove() }
  /* unlike them and remove the tweet to prevent it from getting re-liked */
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) { d.click(); d.parentNode.parentNode.remove() }
  /* load new tweets */
  window.scrollTo(0, document.body.scrollHeight)
}, 10 * 1000)

The counter at the top of the page seems unaffected.

However, you are probably best off using Circleboom as it is not affected by the rate limit nonsense and will just work.

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