Greasy Fork is available in English.

/noparse in chat

Enables the use of /noparse to insert 0-width spaces

// ==UserScript==
// @name         /noparse in chat
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Enables the use of /noparse to insert 0-width spaces
// @author       JK_3
// @match        https://www.warzone.com/MultiPlayer?ChatRoom=1
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    console.log("Starting /noparse script")

    let waitPopup = document.getElementById("WaitDialogJSMainDiv")
    let intervalID = null

    function applyEventHandlers() {
        for (let input of document.querySelectorAll("[id^='ujs_SendChatText'][id$='input']")) {
            input.oninput = (event) => {
                let elem = document.getElementById(event.srcElement.id)
                elem.value = elem.value.replace("/noparse","\u200B")
            }
        }
        console.log("Completed /noparse script")
    }

    function checkIfPageReady(){
        if (waitPopup.style.display == 'none') {
            clearInterval(intervalID)
            applyEventHandlers()
        }
    }

    intervalID = setInterval(checkIfPageReady, 250)

})();