瀏覽器打開我的關注列表頁/我的主頁矗积,鼠標右鍵-【檢查/審查元素】-【Console/控制臺】,粘貼回車即可清理當前頁
// 清理當前頁關注列表
STK.core.io.ajax({
args: {
uid: Array.from(document.querySelectorAll('.member_ul > li')).map((li)=>{return li.getAttribute('action-data').match(/uid\=(\d+)/i)[1]}).join(','),
refer_flag: "unfollow_all"
},
isEncode: true,
method: "post",
responseType: "json",
timeout: 30000,
url: "/aj/f/unfollow?ajwvr=6&__rnd=" + new Date().getTime(),
onComplete: (o)=>{alert('處理完成,刷新頁面');location.reload();}
})
// 清理當前頁微博列表
document.querySelectorAll('.WB_feed_type').forEach((div)=>{
let id = div.getAttribute('mid');
STK.core.io.ajax({
args: {mid: id},
method: "post",
url: "/aj/mblog/del?ajwvr=6",
onSuccess: ()=>{console.log('del: ' + id);}
});
}); alert('處理完成获雕,刷新頁面');location.reload();