Bihu CommentList

Clear comments list.

当前为 2018-04-13 提交的版本,查看 最新版本

// ==UserScript==
// @name         Bihu CommentList
// @namespace    https://bihu.com/people/112225
// @version      0.1
// @description  Clear comments list.
// @author       Riley Ge
// @match        https://bihu.com/article/*
// @require      https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js
// @grant        none
// ==/UserScript==

(function() {
    var clks2 = setInterval(function(){
        var comments = $("div.row.comment-info");
        //allitems += comments.length;
        comments.each(function() {
            //var innerText = $(this).find("p.first-comment-content").text().length;
            if($(this).find("p.first-comment-content").text().length < 5)
                //deleteditems++;
                $(this).remove();
        });
    },3000);
})();