zoe1337 / Orange Detox

// ==UserScript==
// @name         Orange Detox
// @namespace    http://news.ycombinator.com/
// @version      0.1
// @description  Make the orange website a bit less toxic
// @author       zoe1337
// @match        https://news.ycombinator.com/
// @icon         https://www.google.com/s2/favicons?domain=ycombinator.com
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    var list = document.getElementsByTagName("a");
    for (let item of list) {
        if (item.innerHTML.endsWith("comments") || item.innerHTML.endsWith("comment")) {
            console.log(item.id);
            item.remove();
        }
    }

})();