Skip to content

Instantly share code, notes, and snippets.

@jeffrafter
Last active August 15, 2019 13:35
Show Gist options
  • Save jeffrafter/1554cdf5c3a842872f5faf64535d6195 to your computer and use it in GitHub Desktop.
Save jeffrafter/1554cdf5c3a842872f5faf64535d6195 to your computer and use it in GitHub Desktop.
Unfollow everyone on modern twitter

Want to unfollow everyone on twitter?

Open a console

In Chrome, right-click and go to Inspect Element. Then click on the Console tab. Or hit: Shift+Cmd+j

Enter this:

window.setInterval(() => {
  var count = 0
  // Click all of the Following links
  document.querySelectorAll('span').forEach(span => { 
    if (span.innerText ===   'Following') { span.click() } 
  })
  // Confirm the Unfollow
  document.querySelectorAll('span').forEach(span => { 
    if (span.innerText === 'Unfollow') { 
      span.click() 
      count +=1
    } 
  })
  console.log("Unfollowed " + count)

  // Now reload!
  window.scrollBy(0, 10000)
}, 4000)

You might need to do it a few times. It gets confused.

Unfollow

@suelenmiranda
Copy link

it's not working for me :(

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