Remove Brainless

Remove blank quotations from adnmb

// ==UserScript==
// @name         Remove Brainless
// @namespace    https://adnmb2.com/
// @version      0.2.4
// @description  Remove blank quotations from adnmb
// @author       Toka-MK
// @match        https://adnmb2.com/*
// @grant        GM_addStyle
// ==/UserScript==

(function() {
    "use strict";
    var htmlCollection = document.getElementsByClassName("h-threads-content");
    var array = [].slice.call(htmlCollection);
    for (var i = 0; i < array.length; i++) {
        if (array[i].parentElement.childElementCount < 3 && array[i].textContent.trim().replace(/>>No.[1-9][0-9]{0,9}/, "").length == 0) {
            array[i].parentElement.parentElement.remove();
        }
    }
})();
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元