Last active
August 1, 2018 23:26
-
-
Save cdtweb/5088071923fce9d0abcf0892eac4a8a5 to your computer and use it in GitHub Desktop.
JS delete your tweets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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