Skip to content

Instantly share code, notes, and snippets.

@cdtweb

cdtweb/delete-tweets.js

Last active Aug 1, 2018
Embed
What would you like to do?
JS delete your tweets
// This may or may not work for you
// Browse to the 'tweets' page on your profile
// Copy & paste into the browser console and hit enter
// Interval set to 10s to hopefully avoid rate limiting
// You may need to prove you are not a robot
setInterval(function() {
// scroll to bottom of screen
window.scrollTo(0, document.body.scrollHeight);
// click all the delete buttons
$('li.js-actionDelete > button').each(function(e){
this.click();
// click the confirm delete button
$('button.delete-action').click();
});
}, 10000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment