营养区|批量删除微博,,,
momo
年少轻狂被脂粉忽悠,,,有过一段不堪的往事,,骂208老是被鉴粉籍,,,现分享批量删除微博方法,, 1.打开网页版微博个人主页

2.按 f12 部分电脑可能需要fn+f12,,选择控制台(console)

3.输入下列代码
let shouldContinueDeleting = true; function clickDeleteButtonAtIndex(index) { if (index < document.getElementsByClassName('woo-box-flex woo-box-alignCenter woo-pop-item-main').length) { const item = document.getElementsByClassName('woo-box-flex woo-box-alignCenter woo-pop-item-main')[index]; const content = item.innerHTML; if (content.includes("删除")) { item.click(); setTimeout(() => { document.getElementsByClassName('woo-button-main woo-button-flat woo-button-primary woo-button-m woo-button-round woo-dialog-btn')[0].click(); }, 200); } } } function checkAndClickMoreButton() { const moreButtons = document.getElementsByClassName('woo-font woo-font--angleDown morepop_action_bk3Fq'); if (moreButtons.length > 0) { moreButtons[0].click(); } } // 监听键盘事件,按下Esc键时停止删除操作 document.addEventListener('keydown', function(event) { if (event.key === 'Escape') { shouldContinueDeleting = false; } }); // 主循环,根据shouldContinueDeleting的值决定是否继续 setInterval(() => { if (!shouldContinueDeleting) { console.log("删除操作已停止。"); return; } checkAndClickMoreButton(); // 尝试按顺序点击可能的删除按钮位置 [5, 6, 7, 8].forEach(clickDeleteButtonAtIndex); }, 200);
4.静候

如有报错,可能是某条微博不是公开状态,,需咕咕们手动删除,再刷新网页重新操作即可,,
你的回复
回复请先 登录 , 或 注册相关内容推荐
最新讨论 ( 更多 )
- 32哥的人生照片🈶 (豆友248554678)
- 范九亿是不是就是爱拍电影啊,,, (momo)
- 看过巫师讲老燕子这期么 (沥秋)
- 两公母联合炒作,,,, (momo(耍大脚)
- 气抖冷,,,什么时候悼明梗能过时啊,,, (盐渍宇宙)
