-
-
Save BitWizCoder-ol/93e04acb79810e95a5f127f846834d6f to your computer and use it in GitHub Desktop.
Revisions
-
obedparla created this gist
Jun 20, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ // Delete ALL your tweets and un-retweet everything // Just paste this code on the dev tools and leave the tab open. It deletes at [speed]. Make it faster or slower // I don't know if Twitter has some internal safety to prevent a bunch of deletions from happening to fast, but at 100 it deletes 1000 tweets in under two minutes // BEWARE you can't undo this action, and it will delete EVERYTHING const speed = 100; // do it on repeat. Timeouts are ugly but whatever, it works setInterval(function (){ const retweets = document.querySelectorAll("[data-testid='unretweet']"); retweets.forEach((item, index) => { setTimeout(() => { item.click() document.querySelector("[data-testid='unretweetConfirm']").click(); }, index * speed); }) setTimeout(() => { document.querySelectorAll("[data-testid='caret']").forEach((menu, index) => { setTimeout(() => { menu.click() document.querySelector('[role="menuitem"]').click(); document.querySelector("[data-testid='confirmationSheetConfirm']").click() }, index * speed) }) }, retweets.length * (speed + 5)); }, 1000)