打开QQ空间找到留言板,然后按下F12(启用开发者调试模式)然后将以下代码复制黏贴到“Console”这个面板中,回车即可!
-------------------------------------------------------------以下内容为代码区域----------------------------------------------------
//初始化展开批量操作
document.getElementsByClassName('app_canvas_frame')[0].contentWindow.document.getElementById('btnBatchBottom').click();
var dispatch = setInterval(function () {
var chkSelectAll = document.getElementsByClassName('app_canvas_frame')[0].contentWindow.document.getElementById('chkSelectAll');
var btnDeleteBatchBottom = document.getElementsByClassName('app_canvas_frame')[0].contentWindow.document.getElementById('btnDeleteBatchBottom');
var qz_dialog_layer_btn = document.getElementsByClassName("qz_dialog_layer_btn");
var item_check_box = document.getElementsByClassName('app_canvas_frame')[0].contentWindow.document.getElementsByClassName('item_check_box').length;
if (item_check_box <= 0) {
alert("您的留言板数据已经全部删除!");
clearInterval(dispatch);
return false;
}
//判断当前状态是否选中
if (!chkSelectAll.checked) {
chkSelectAll.click();
if (chkSelectAll.checked) {
//点击批量删除btn
btnDeleteBatchBottom.click();
//点击layer btn
qz_dialog_layer_btn[0].click();
}
} else {
//点击批量删除btn
btnDeleteBatchBottom.click();
//点击layer btn
qz_dialog_layer_btn[0].click();
}
}, 1000);
!评论内容需包含中文