进入到个人主页,点击动态 https://space.bilibili.com/

建议把动态滑到最下方。。。避免一次只能删一点
然后按键盘上的F12,选择 控制台(console)

把下面这段代码,复制粘贴并回车
// 复制这段代码
var needDelDeled = true,
delay = 1000,
scrolls = 800;
var w = '', d = '', r = 0;
function getLuckyDraw() {
w.css("background-color", "#f1c40f");
w = w.parents(".card");
w.css("background-color", "#2ecc71");
w[w.length - 1].querySelectorAll(".child-button")[1].click();
setTimeout(clickDel, delay);
}
function getDel() {
d.css("background-color", "#8e44ad");
d = d.parents(".card");
d.css("background-color", "#2ecc71");
d[d.length - 1].querySelectorAll(".child-button")[1].click();
setTimeout(clickDel, delay);
}
function clickDel() {
//点删除
$(".popup-content-ctnr")[$(".popup-content-ctnr").length - 2].querySelector(".bl-button").click(); // 点确定
r += scrolls;
$('html, body').animate({ scrollTop: r }, 30);
$(".fold-text").click()
$(".expand-btn").click();
w = $(".main-content").find('span[click-title="抽奖详情"]');
d = $(".main-content").find('.deleted-text');
if (d.length && needDelDeled) setTimeout(getDel, delay);
else setTimeout(getLuckyDraw, delay);
}
if (/dynamic/.test(window.location.href) && confirm("是不是要删除抽奖动态")) {
r += scrolls;
$('html, body').animate({ scrollTop: r }, 30);
$(".fold-text").click()
$(".expand-btn").click();
w = $(".main-content").find('span[click-title="抽奖详情"]');//*互动抽奖内容定位
d = $(".main-content").find('.deleted-text'); //*已删除内容定位
if (d.length && needDelDeled) setTimeout(getDel, delay);
else setTimeout(getLuckyDraw, delay);
}
然后等执行,会跳出一个谈框,选 确定

原创文章,作者:陌涛,如若转载,请注明出处:https://imotao.com/5533.html