Swear script

lets toy swear in zombs

Verze ze dne 28. 03. 2021. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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);