您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
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) })();