Show HN: Delete All Your Tweets
2 comments
I miss the good old days when people would just burn down the server room. Would have saved a lot of people a lot of time.
It took over 3 hours to delete 2,897 tweets and 787 retweets, it did nothing for the likes, I got rid of 347 likes in about 1 minute with the following code, I noticed it was "unliking" one by one every 10 seconds, which would've taken considerably longer, I avoided this by commenting the return after the console.log.
// UNDER THE 'LIKES' TAB const articles = document.getElementsByTagName("article"); for (article of articles) { article.scrollIntoView(); try { const unlike = article.querySelector('[data-testid="unlike"]'); if (unlike) { unlike.click(); console.log("Ok!"); // return; } } catch (e) {} }
// UNDER THE 'LIKES' TAB const articles = document.getElementsByTagName("article"); for (article of articles) { article.scrollIntoView(); try { const unlike = article.querySelector('[data-testid="unlike"]'); if (unlike) { unlike.click(); console.log("Ok!"); // return; } } catch (e) {} }
Paste the following code into the browser JavaScript console.
DISCLAIMER! This code deletes all your Tweets - I am not responsible for you deleting all your Tweets.
Make sure you set your twitter handle in the code before pasting it!