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 deleteTweetsSafe() { | |
| const TARGET_TEXT = '咚!咚!咚!咚!'; | |
| const MAX_DELETE_COUNT = 67; // 【安全设置】每次运行最多删除 30 条,删完自动停止,建议休息一会再运行 | |
| let deletedCount = 0; | |
| console.log(`🛡️ 安全模式启动:正在扫描包含 "${TARGET_TEXT}" 的推文...`); | |
| // 辅助函数:生成 min 到 max 之间的随机等待时间 (模拟真人思考和操作延迟) | |
| const randomDelay = (min, max) => new Promise(res => setTimeout(res, Math.floor(Math.random() * (max - min + 1) + min))); |