Skip to content

Instantly share code, notes, and snippets.

@mehdi-farsi
Last active September 20, 2023 17:27
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mehdi-farsi/20ff7f2460045960aebb20c0bef6f2e3 to your computer and use it in GitHub Desktop.
Save mehdi-farsi/20ff7f2460045960aebb20c0bef6f2e3 to your computer and use it in GitHub Desktop.
Script to mass-unfollow OR delete all tweets on Twitter

Mass-unfollow

Step 1

Go to the console tab in your browser: right-click -> "inspect" -> "Console" tab

STEP 2

Paste the following script and press Enter:

function scroll(){
  window.scrollTo(0,document.body.scrollHeight);
  $('.js-follow-btn').each(function() {
    $(this).trigger('click');
    $(this).removeClass('js-follow-btn');
  });
}

scroll();

Please star the Gist !

Remove all tweets

Step 1

Go to tweets page and scroll down to load all tweets

Step 2

Paste the following script to the browser console

function scroll(){
  window.scrollTo(0,document.body.scrollHeight);
  $('.js-actionDelete').each(function(){
  	$(this).trigger('click');
    $('.delete-action').trigger('click');
	});
}
scroll();

###Contact

Thanks for reading. I'm available for freelance work !

Twitter
GitHub
LinkedIn

@LeyendaV
Copy link

None of this work.

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