跳过正文
  1. posts/

[已过时] 说说一键自动批量删除脚本

·154 字·1 分钟
工具 脚本 QQ空间
高玩梁
作者
高玩梁
一个对所有事物保持好奇心的人

详细使用教程请见:https://www.bilibili.com/video/av95148891/

// 网站:user.qzone.qq.com

var temp = true;

function clickDel() {
    try {
        document.querySelector('.app_canvas_frame').contentDocument.querySelector('.del_btn').click();
    } catch{
        var a = document.querySelector('.app_canvas_frame').contentDocument.querySelector('.mod_pagenav_main').querySelectorAll('.c_tx');
        a[a.length - 1].click();
        temp = false;
        setTimeout(clickDel, 2000);
    }
    setTimeout(clickYes, temp ? 2000 : 5000);
    temp = true;
}
function clickYes() {
    document.querySelector('.qz_dialog_layer_btn').click();
    setTimeout(clickDel, 2000);
}
if (confirm("是不是要删除说说")) {
    setTimeout(function () {
        document.querySelectorAll("a[tabindex]")[8].click();
        setTimeout(clickDel, 2000);
    }, 3000);
}