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
| async function wait(count) { | |
| const timeout = count % 50 === 0 ? 30000 : Math.random() * 1000 + 2000; | |
| await new Promise(resolve => setTimeout(resolve, timeout)); | |
| } | |
| async function unlikeAllTweets({ limit, deleteTweets=false }) { | |
| let count = 0; | |
| while (count < limit) { | |
| const unlikeButton = document.querySelector('[data-testid="unlike"]'); | |
| if (!unlikeButton) break; |