Repositories (1)

TechwiseCommunicationsApp
1 snippets stored for this repo
var bar = document.getElementsByClassName("titlebar");

    var splitText = text.value.split(" ");
    const badWords = ["tit", "tits", "boob", "boobs", "asshole", "ass", "fuck", "fucks", "fucked", "cock", "cocks", "penis", "cuck", "assholes", "asses", "rectum", "bitch", "bitches", "shit", "shits", "shithead", "shitty", "fag", "faggot", "cocksucker"];
    for (let i in splitText){
        if (badWords.includes(splitText[i])){
            msg.style.backgroundColor = "red";