博客园批量删除文章【转】

进入我的博客->管理,进入管理后台后,先切换到旧版后台
在这里插入图片描述
然后按F12(或者右键检查)

选择console,输入下面代码,回车。

var jq = document.createElement('script');
jq.src = "https://code.jquery.com/jquery-3.3.1.min.js";  /* Include any online jquery library you need */
document.getElementsByTagName('head')[0].appendChild(jq);
$('tr').each(function(){
        if($(this).attr('id')!=null){
            var s = $(this).attr('id').slice(9);
            console.info("正在删除:"+s);
            deletePost(s);
        }
    var realConfirm=window.confirm;
    window.confirm=function(){
        window.confirm=realConfirm;
        return true;
        };
    });
window.location.reload();
发布了501 篇原创文章 · 获赞 2066 · 访问量 173万+

猜你喜欢

转载自blog.csdn.net/dataiyangu/article/details/103834870