Emmm,被人说非主流了,然后debug了下QQ空间的JS,可以用下面脚本批量删
删除说说
PC端
PC端限制比较大,删了一下就要验证码了。。。调整速度可以增加setInterval的延时和减小num的值。
var uin = QZONE.FP.getQzoneConfig("loginUin");
cgi_host = "https://taotao.qq.com/cgi-bin/emotion_cgi_msglist_v6";
finish_flag = 0;
setInterval('deleteMsg()', 3000);
function deleteMsg() {
if (finish_flag) {
return;
}
var data = {
uin: uin,
inCharset: "utf-8",
outCharset: "utf-8",
hostUin: uin,
notice: 0,
sort: 0,
pos: 0,
num: 1,
cgi_host: cgi_host,
code_version: 1,
format: "jsonp",
need_private_comment: 0
};
var req = new QZFL.JSONGetter(cgi_host, null, data, "utf-8");
req.onSuccess = function(msgData){
if(msgData && msgData.msglist && msgData.msglist.length > 0){
$j.each(msgData.msglist, function(index, el){
console.log(el);
seajs.use("app/v8/requests/mood_request/1.0", function(req) {
req.post({
id: "delete_v6",
data: {
hostuin: uin,
tid: el.tid,
t1_source: el.t1_source,
wbid: el.wbid || 0,
},
onSuccess: function(){
console.log("ok")
}
});
});
});
} else {
finish_flag = 1;
console.log("删除完成")
}
};
req.onError = function(err) {
console.log(err);
};
req.send();
page_pos += page_num;
}
移动端:
移动端亲测没有限制,可以随便删
uin = g_Guest.userid;
setInterval('deleteShuoshuo()', 3000);
function deleteShuoshuo() {
QZ.ajax.request({
url: "/list",
type: "get",
data: {
action: 0,
count: 3,
format: "json",
list_type: "shuoshuo",
res_uin: uin,
},
dataType: "json",
success: function(data) {
data.data.vFeeds.forEach(function(post){
console.log(post);
QZ.ajax.request({
url: "/operation/operation_add",
type: "post",
data: {
opr_type: "delugc",
res_type: 311,
res_id: post.id.cellid,
real_del: 0,
res_uin: uin,
format: "json"
}
})
});
}
});
}