Giter Club home page Giter Club logo

weibo-delete-all-dynamics's People

Contributors

longbow1998 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

weibo-delete-all-dynamics's Issues

仅自己可见会卡壳,一些特殊情况也需要特殊处理。

加了个丑陋的兼容 😂

但是遇到被举报的微博,还是会卡住。

function deleteMessage() {
  // 下箭头
  let iDom = document.getElementsByClassName('woo-font woo-font--angleDown morepop_action_bk3Fq')[0];
  if (iDom) {
    iDom.click();
    setTimeout(() => {
    // 删除点击
      document.getElementsByClassName('woo-box-flex woo-box-alignCenter woo-pop-item-main')[6]?.innerText === '删除' ? document.getElementsByClassName('woo-box-flex woo-box-alignCenter woo-pop-item-main')[6]?.click() : document.getElementsByClassName('woo-box-flex woo-box-alignCenter woo-pop-item-main')[5]?.click() ;
    }, 10) 
    setTimeout(() => {
      // 确认删除框 确认点击
      document.getElementsByClassName('woo-button-main woo-button-flat woo-button-primary woo-button-m woo-button-round woo-dialog-btn')[0]?.click();
      console.log(true)
      setTimeout(() => {
        // 重复执行
        deleteMessage()
      }, 100)
    }, 300)
  }
}
// 执行(想要提速可以多执行几次)
deleteMessage()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.