Greasy Fork

Remove Brainless

Remove blank quotations from adnmb

目前为 2020-04-25 提交的版本。查看 最新版本

// ==UserScript==
// @name         Remove Brainless
// @namespace    https://adnmb2.com/
// @version      0.2.2
// @description  Remove blank quotations from adnmb
// @author       FBTo3is
// @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].textContent.includes(">>No.")) && (array[i].textContent.trim().length == 13)) {
            array[i].parentElement.parentElement.remove();
        }
    }
})();