Swear script

lets toy swear in zombs

目前為 2021-03-28 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Swear script
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  lets toy swear in zombs
// @author       deathrain
// @match        *://zombs.io/*
// @grant        none
// ==/UserScript==UUUPP
 
var chat = $("hud-chat-input");
function ChatSwear() {
    if (chat.value.includes("fuck")) {
        chat.value = chat.value.replace("fuck", "f&#117ck");
    }
    if (chat.value.includes("FUCK")) {
        chat.value = chat.value.replace("FUCK", "F&#85CK");
    }
    if (chat.value.includes("ass")) {
        chat.value = chat.value.replace("ass", "&#97ss");
    }
    if (chat.value.includes("ASS")) {
        chat.value = chat.value.replace("ASS", "&#65SS");
    }
    if (chat.value.includes("bitch")) {
        chat.value = chat.value.replace("bitch", "b&#105tch");
    }
    if (chat.value.includes("BITCH")) {
        chat.value = chat.value.replace("BITCH", "B&#73TCH");
    }
    if (chat.value.includes("cunt")) {
        chat.value = chat.value.replace("cunt", "c&#117nt");
    }
    if (chat.value.includes("CUNT")) {
        chat.value = chat.value.replace("CUNT", "C&#85NT");
    }
    if (chat.value.includes("shit")) {
        chat.value = chat.value.replace("shit", "sh&#105t");
    }
    if (chat.value.includes("SHIT")) {
        chat.value = chat.value.replace("SHIT", "SH&#73T");
    }
}
document.addEventListener("keydown", ChatSwear);