Remove Brainless

Remove blank quotations from adnmb

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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();
        }
    }
})();