longbow1998 / weibo-delete-all-dynamics Goto Github PK
View Code? Open in Web Editor NEW新浪微博删除全部动态
新浪微博删除全部动态
加了个丑陋的兼容 😂
但是遇到被举报的微博,还是会卡住。
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()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.