Add profanity filter words array
This commit is contained in:
@@ -1109,6 +1109,263 @@ let serverEmoji = [
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
let profanityFilterWords = [
|
||||
"2g1c",
|
||||
"acrotomophilia",
|
||||
"anal",
|
||||
"anilingus",
|
||||
"anus",
|
||||
"apeshit",
|
||||
"arsehole",
|
||||
"ass",
|
||||
"asshole",
|
||||
"assmunch",
|
||||
"autoerotic",
|
||||
"babeland",
|
||||
"bangbros",
|
||||
"bareback",
|
||||
"barenaked",
|
||||
"bastard",
|
||||
"bastardo",
|
||||
"bastinado",
|
||||
"bbw",
|
||||
"bdsm",
|
||||
"beaner",
|
||||
"beaners",
|
||||
"bestiality",
|
||||
"bimbos",
|
||||
"birdlock",
|
||||
"bitch",
|
||||
"bitches",
|
||||
"blowjob",
|
||||
"blumpkin",
|
||||
"bollocks",
|
||||
"bondage",
|
||||
"boner",
|
||||
"boob",
|
||||
"boobs",
|
||||
"bukkake",
|
||||
"bulldyke",
|
||||
"bullshit",
|
||||
"bunghole",
|
||||
"busty",
|
||||
"butt",
|
||||
"buttcheeks",
|
||||
"butthole",
|
||||
"camgirl",
|
||||
"camslut",
|
||||
"camwhore",
|
||||
"carpetmuncher",
|
||||
"circlejerk",
|
||||
"clit",
|
||||
"clitoris",
|
||||
"clusterfuck",
|
||||
"cock",
|
||||
"cocks",
|
||||
"coprolagnia",
|
||||
"coprophilia",
|
||||
"cornhole",
|
||||
"coon",
|
||||
"coons",
|
||||
"creampie",
|
||||
"cum",
|
||||
"cumming",
|
||||
"cunnilingus",
|
||||
"cunt",
|
||||
"darkie",
|
||||
"daterape",
|
||||
"deepthroat",
|
||||
"dendrophilia",
|
||||
"dick",
|
||||
"dildo",
|
||||
"dingleberry",
|
||||
"dingleberries",
|
||||
"doggiestyle",
|
||||
"doggystyle",
|
||||
"dolcett",
|
||||
"domination",
|
||||
"dominatrix",
|
||||
"dommes",
|
||||
"dvda",
|
||||
"ecchi",
|
||||
"ejaculation",
|
||||
"erotic",
|
||||
"erotism",
|
||||
"escort",
|
||||
"eunuch",
|
||||
"faggot",
|
||||
"fecal",
|
||||
"felch",
|
||||
"fellatio",
|
||||
"feltch",
|
||||
"femdom",
|
||||
"figging",
|
||||
"fingerbang",
|
||||
"fingering",
|
||||
"fisting",
|
||||
"footjob",
|
||||
"frotting",
|
||||
"fuck",
|
||||
"fuckin",
|
||||
"fucking",
|
||||
"fucktards",
|
||||
"fudgepacker",
|
||||
"futanari",
|
||||
"genitals",
|
||||
"goatcx",
|
||||
"goatse",
|
||||
"gokkun",
|
||||
"goodpoop",
|
||||
"goregasm",
|
||||
"grope",
|
||||
"g-spot",
|
||||
"guro",
|
||||
"handjob",
|
||||
"hardcore",
|
||||
"hentai",
|
||||
"homoerotic",
|
||||
"honkey",
|
||||
"hooker",
|
||||
"humping",
|
||||
"incest",
|
||||
"intercourse",
|
||||
"jailbait",
|
||||
"jigaboo",
|
||||
"jiggaboo",
|
||||
"jiggerboo",
|
||||
"jizz",
|
||||
"juggs",
|
||||
"kike",
|
||||
"kinbaku",
|
||||
"kinkster",
|
||||
"kinky",
|
||||
"knobbing",
|
||||
"lolita",
|
||||
"lovemaking",
|
||||
"masturbate",
|
||||
"milf",
|
||||
"motherfucker",
|
||||
"muffdiving",
|
||||
"nambla",
|
||||
"nawashi",
|
||||
"negro",
|
||||
"neonazi",
|
||||
"nigga",
|
||||
"nigger",
|
||||
"nimphomania",
|
||||
"nipple",
|
||||
"nipples",
|
||||
"nude",
|
||||
"nudity",
|
||||
"nympho",
|
||||
"nymphomania",
|
||||
"octopussy",
|
||||
"omorashi",
|
||||
"orgasm",
|
||||
"orgy",
|
||||
"paedophile",
|
||||
"paki",
|
||||
"panties",
|
||||
"panty",
|
||||
"pedobear",
|
||||
"pedophile",
|
||||
"pegging",
|
||||
"penis",
|
||||
"pissing",
|
||||
"pisspig",
|
||||
"playboy",
|
||||
"ponyplay",
|
||||
"poof",
|
||||
"poon",
|
||||
"poontang",
|
||||
"punany",
|
||||
"poopchute",
|
||||
"porn",
|
||||
"porno",
|
||||
"pornography",
|
||||
"pthc",
|
||||
"pubes",
|
||||
"pussy",
|
||||
"queaf",
|
||||
"queef",
|
||||
"quim",
|
||||
"raghead",
|
||||
"rape",
|
||||
"raping",
|
||||
"rapist",
|
||||
"rectum",
|
||||
"rimjob",
|
||||
"rimming",
|
||||
"sadism",
|
||||
"santorum",
|
||||
"scat",
|
||||
"schlong",
|
||||
"scissoring",
|
||||
"semen",
|
||||
"sex",
|
||||
"sexo",
|
||||
"sexy",
|
||||
"shemale",
|
||||
"shibari",
|
||||
"shit",
|
||||
"shitblimp",
|
||||
"shitty",
|
||||
"shota",
|
||||
"shrimping",
|
||||
"skeet",
|
||||
"slanteye",
|
||||
"slut",
|
||||
"s&m",
|
||||
"smut",
|
||||
"snatch",
|
||||
"snowballing",
|
||||
"sodomize",
|
||||
"sodomy",
|
||||
"spic",
|
||||
"splooge",
|
||||
"spooge",
|
||||
"spunk",
|
||||
"strapon",
|
||||
"strappado",
|
||||
"suck",
|
||||
"sucks",
|
||||
"swastika",
|
||||
"swinger",
|
||||
"threesome",
|
||||
"throating",
|
||||
"tit",
|
||||
"tits",
|
||||
"titties",
|
||||
"titty",
|
||||
"topless",
|
||||
"tosser",
|
||||
"towelhead",
|
||||
"tranny",
|
||||
"tribadism",
|
||||
"tubgirl",
|
||||
"tushy",
|
||||
"twat",
|
||||
"twink",
|
||||
"twinkie",
|
||||
"undressing",
|
||||
"upskirt",
|
||||
"urophilia",
|
||||
"vagina",
|
||||
"vibrator",
|
||||
"vorarephilia",
|
||||
"voyeur",
|
||||
"vulva",
|
||||
"wank",
|
||||
"wetback",
|
||||
"xx",
|
||||
"xxx",
|
||||
"yaoi",
|
||||
"yiffy",
|
||||
"zoophilia"
|
||||
];
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
let placesOfOrigin = [
|
||||
"Liberty City",
|
||||
"Vice City",
|
||||
@@ -2744,7 +3001,7 @@ function removeColoursInMessage(messageText) {
|
||||
/**
|
||||
* Replaces emoji texts with actual emoji
|
||||
*
|
||||
* @param {String} colouredString - String with emoji names
|
||||
* @param {String} messageString - String with emoji names
|
||||
* @return {String} String with actual emoji images
|
||||
*
|
||||
*/
|
||||
@@ -2759,6 +3016,24 @@ function replaceEmojiInString(messageString) {
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
/**
|
||||
* Replaces profanity with masked words like: ******
|
||||
*
|
||||
* @param {String} messageString - String with profanity
|
||||
* @return {String} String with profanity masked
|
||||
*
|
||||
*/
|
||||
function replaceProfanityInString(messageString) {
|
||||
for (let i in profanityFilterWords) {
|
||||
while (messageString.indexOf(profanityFilterWords[i]) != -1) {
|
||||
messageString = messageString.replace(profanityFilterWords[i], fillStringWithCharacter("*", profanityFilterWords[i].length));
|
||||
}
|
||||
}
|
||||
return messageString;
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
function isWeekend() {
|
||||
let d = new Date();
|
||||
return d.getDay() == 6 || d.getDay() == 0;
|
||||
|
||||
Reference in New Issue
Block a user