文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> 软件教程>怎样批量清空微博?亲测有效2025

怎样批量清空微博?亲测有效2025

时间:2025-04-29  来源:互联网

    一、具体操作方法:

    1、打开wb网页版,个人主页(个人用的谷歌浏览器)。

    2、按F12,笔记本按住Fn+F12,进入控制台(Console),把下面的代码贴进去,回车启动。

    二、小贴士:

    1、MAC:command+option+i唤起开发者工具

    2、如果过程中有提示授权,需要先按照提示,填写要求的内容,然后回车授权,再贴代码回车。

    3、效果就是:屏幕上不断看到系统自动删除微博。

    4、想结束就刷新下页面。

    三、代码如下:

    functiondelay(timeout=100){

    returnnewPromise((resolve)=>{

    setTimeout(()=>{

    resolve()

    },timeout)

    })

    }

    functionfindOffsetParent(node){

    while(!node.offsetParent.classList.contains('vue-recycle-scroller__item-view')){

    node=node.offsetParent

    }

    returnnode.offsetParent

    }

    constinitializedScrollTop=600

    leterrorCount=0

    asyncfunctionreadyGo(){

    constangleDownList=document.querySelectorAll('i[class="woo-fontwoo-font--angleDownmorepop_action_bk3Fq"]')

    constangleDownListLength=angleDownList.length

    try{

    if(!angleDownList){

    returnconsole.log

    }

    if(!angleDownListLength){

    returnconsole.log("这下清爽多了!!!")

    }

    //展开下拉框

    angleDownList[1].click()

    //点击删除

    constpopItems=document.querySelectorAll('div[class="woo-box-flexwoo-box-alignCenterwoo-pop-item-main"]')

    for(leti=0;i<popItems.length;i++){

    constnode=popItems[i]

    if(node.innerText==="删除"){

    node.click()

    break

    }

    }

    awaitdelay()

    constoffsetParent=findOffsetParent(angleDownList[1])

    //确认删除

    document.querySelectorAll('button[class="woo-button-mainwoo-button-flatwoo-button-primarywoo-button-mwoo-button-roundwoo-dialog-btn"]')[0].click()

    awaitdelay()

    constdoc=document.documentElement||document.body

    doc.scrollTo(0,initializedScrollTop+offsetParent.offsetHeight)

    errorCount=0

    }catch(e){

    if(errorCount>=5){

    returnconsole.error('重新执行吧:',e)

    }

    document.body.click()

    errorCount+=1

    readyGo()

    return

    }

    if(angleDownListLength>=2){

    readyGo()

    }

    }

    readyGo()

    更多微博相关教程,敬请期待phpfans软件教程栏目。

相关阅读更多 +
最近更新
排行榜 更多 +
元梦之星最新版手游

元梦之星最新版手游

棋牌卡牌 下载
我自为道安卓版

我自为道安卓版

角色扮演 下载
一剑斩仙

一剑斩仙

角色扮演 下载