ffactory / Intercom si

// ==UserScript==
// @name         Intercom si
// @namespace    http://app.intercom.com/
// @version      0.2
// @description  Make tickets that start with si less visible
// @author       Filippo
// @match        https://app.intercom.com/a/inbox/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=app.intercom.com
// @grant        none
// @downloadURL  https://openuserjs.org/install/ffactory/Intercom_si.user.js
// @updateURL    https://openuserjs.org/meta/ffactory/Intercom_si.meta.js
// @copyright    2022, ffactory (https://openuserjs.org/users/ffactory)
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    setInterval(function() {
        document.querySelectorAll(".inbox2__animated-list-item-container .flex.items-center.line-clamp-1.break-all").forEach((el) => {
            if (el.innerText == 'si' || el.innerText.startsWith('si ') || el.innerText.startsWith('si: ')) {
                el.parentElement.parentElement.parentElement.parentElement.parentElement.style.opacity = 0.2
            }
        });
    }, 500);
})();