Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions les3/MT3A/DecoratorTextfield/dev/decorators/AntiSwearDecorator.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/// <reference path="ConcreteDecorator.ts" />
/// <reference path="../text.ts" />

class AntiSwearDectorater implements Txt {
private s: string;

constructor(s: string) {
this.s = s;
}

public getText(): string {

//remove swear words from input
this.removeSwearWords();

return this.s;
}

/**
* Remove all swearwords from the input
*/
private removeSwearWords(){
//list of swearwords
let swearWords = ['a55', 'a55hole', 'aeolus', 'ahole', 'anal', 'analprobe', 'anilingus', 'anus', 'areola', 'areole', 'arian', 'aryan', 'ass', 'assbang', 'assbanged', 'assbangs', 'asses', 'assfuck', 'assfucker', 'assh0le', 'asshat', 'assho1e', 'ass hole', 'assholes', 'assmaster', 'assmunch', 'asswipe', 'asswipes', 'azazel', 'azz', 'b1tch', 'babe', 'babes', 'ballsack', 'bang', 'banger', 'barf', 'bastard', 'bastards', 'bawdy', 'beaner', 'beardedclam', 'beastiality', 'beatch', 'beater', 'beaver', 'beer', 'beeyotch', 'beotch', 'biatch', 'bigtits', 'big tits', 'bimbo', 'bitch', 'bitched', 'bitches', 'bitchy', 'blow job', 'blow', 'blowjob', 'blowjobs', 'bod', 'bodily', 'boink', 'bollock', 'bollocks', 'bollok', 'bone', 'boned', 'boner', 'boners', 'bong', 'boob', 'boobies', 'boobs', 'booby', 'booger', 'bookie', 'bootee', 'bootie', 'booty', 'booze', 'boozer', 'boozy', 'bosom', 'bosomy', 'bowel', 'bowels', 'bra', 'brassiere', 'breast', 'breasts', 'bugger', 'bukkake', 'bullshit', 'bull shit', 'bullshits', 'bullshitted', 'bullturds', 'bung', 'busty', 'butt', 'butt fuck', 'buttfuck', 'buttfucker', 'buttfucker', 'buttplug', 'c.0.c.k', 'c.o.c.k.', 'c.u.n.t', 'c0ck', 'c-0-c-k', 'caca', 'cahone', 'cameltoe', 'carpetmuncher', 'cawk', 'cervix', 'chinc', 'chincs', 'chink', 'chink', 'chode', 'chodes', 'cl1t', 'climax', 'clit', 'clitoris', 'clitorus', 'clits', 'clitty', 'cocain', 'cocaine', 'cock', 'c-o-c-k', 'cockblock', 'cockholster', 'cockknocker', 'cocks', 'cocksmoker', 'cocksucker', 'cock sucker', 'coital', 'commie', 'condom', 'coon', 'coons', 'corksucker', 'crabs', 'crack', 'cracker', 'crackwhore', 'crap', 'crappy', 'cum', 'cummin', 'cumming', 'cumshot', 'cumshots', 'cumslut', 'cumstain', 'cunilingus', 'cunnilingus', 'cunny', 'cunt', 'cunt', 'c-u-n-t', 'cuntface', 'cunthunter', 'cuntlick', 'cuntlicker', 'cunts', 'd0ng', 'd0uch3', 'd0uche', 'd1ck', 'd1ld0', 'd1ldo', 'dago', 'dagos', 'dammit', 'damn', 'damned', 'damnit', 'dawgie-style', 'dick', 'dickbag', 'dickdipper', 'dickface', 'dickflipper', 'dickhead', 'dickheads', 'dickish', 'dick-ish', 'dickripper', 'dicksipper', 'dickweed', 'dickwhipper', 'dickzipper', 'diddle', 'dike', 'dildo', 'dildos', 'diligaf', 'dillweed', 'dimwit', 'dingle', 'dipship', 'doggie-style', 'doggy-style', 'dong', 'doofus', 'doosh', 'dopey', 'douch3', 'douche', 'douchebag', 'douchebags', 'douchey', 'drunk', 'dumass', 'dumbass', 'dumbasses', 'dummy', 'dyke', 'dykes', 'ejaculate', 'enlargement', 'erect', 'erection', 'erotic', 'essohbee', 'extacy', 'extasy', 'f.u.c.k', 'fack', 'fag', 'fagg', 'fagged', 'faggit', 'faggot', 'fagot', 'fags', 'faig', 'faigt', 'fannybandit', 'fart', 'fartknocker', 'fat', 'felch', 'felcher', 'felching', 'fellate', 'fellatio', 'feltch', 'feltcher', 'fisted', 'fisting', 'fisty', 'floozy', 'foad', 'fondle', 'foobar', 'foreskin', 'freex', 'frigg', 'frigga', 'fubar', 'fuck', 'f-u-c-k', 'fuckass', 'fucked', 'fucked', 'fucker', 'fuckface', 'fuckin', 'fucking', 'fucknugget', 'fucknut', 'fuckoff', 'fucks', 'fucktard', 'fuck-tard', 'fuckup', 'fuckwad', 'fuckwit', 'fudgepacker', 'fuk', 'fvck', 'fxck', 'gae', 'gai', 'ganja', 'gay', 'gays', 'gey', 'gfy', 'ghay', 'ghey', 'gigolo', 'glans', 'goatse', 'godamn', 'godamnit', 'goddam', 'goddammit', 'goddamn', 'goldenshower', 'gonad', 'gonads', 'gook', 'gooks', 'gringo', 'gspot', 'g-spot', 'gtfo', 'guido', 'h0m0', 'h0mo', 'handjob', 'hard on', 'he11', 'hebe', 'heeb', 'hell', 'hemp', 'heroin', 'herp', 'herpes', 'herpy', 'hitler', 'hiv', 'hobag', 'hom0', 'homey', 'homo', 'homoey', 'honky', 'hooch', 'hookah', 'hooker', 'hoor', 'hootch', 'hooter', 'hooters', 'horny', 'hump', 'humped', 'humping', 'hussy', 'hymen', 'inbred', 'incest', 'injun', 'j3rk0ff', 'jackass', 'jackhole', 'jackoff', 'jap', 'japs', 'jerk', 'jerk0ff', 'jerked', 'jerkoff', 'jism', 'jiz', 'jizm', 'jizz', 'jizzed', 'junkie', 'junky', 'kike', 'kikes', 'kill', 'kinky', 'kkk', 'klan', 'knobend', 'kooch', 'kooches', 'kootch', 'kraut', 'kyke', 'labia', 'lech', 'leper', 'lesbians', 'lesbo', 'lesbos', 'lez', 'lezbian', 'lezbians', 'lezbo', 'lezbos', 'lezzie', 'lezzies', 'lezzy', 'lmao', 'lmfao', 'loin', 'loins', 'lube', 'lusty', 'mams', 'massa', 'masterbate', 'masterbating', 'masterbation', 'masturbate', 'masturbating', 'masturbation', 'maxi', 'menses', 'menstruate', 'menstruation', 'meth', 'm-fucking', 'mofo', 'molest', 'moolie', 'moron', 'motherfucka', 'motherfucker', 'motherfucking', 'mtherfucker', 'mthrfucker', 'mthrfucking', 'muff', 'muffdiver', 'murder', 'muthafuckaz', 'muthafucker', 'mutherfucker', 'mutherfucking', 'muthrfucking', 'nad', 'nads', 'naked', 'napalm', 'nappy', 'nazi', 'nazism', 'negro', 'nigga', 'niggah', 'niggas', 'niggaz', 'nigger', 'nigger', 'niggers', 'niggle', 'niglet', 'nimrod', 'ninny', 'nipple', 'nooky', 'nympho', 'opiate', 'opium', 'oral', 'orally', 'organ', 'orgasm', 'orgasmic', 'orgies', 'orgy', 'ovary', 'ovum', 'ovums', 'p.u.s.s.y.', 'paddy', 'paki', 'pantie', 'panties', 'panty', 'pastie', 'pasty', 'pcp', 'pecker', 'pedo', 'pedophile', 'pedophilia', 'pedophiliac', 'pee', 'peepee', 'penetrate', 'penetration', 'penial', 'penile', 'penis', 'perversion', 'peyote', 'phalli', 'phallic', 'phuck', 'pillowbiter', 'pimp', 'pinko', 'piss', 'pissed', 'pissoff', 'piss-off', 'pms', 'polack', 'pollock', 'poon', 'poontang', 'porn', 'porno', 'pornography', 'pot', 'potty', 'prick', 'prig', 'prostitute', 'prude', 'pube', 'pubic', 'pubis', 'punkass', 'punky', 'puss', 'pussies', 'pussy', 'pussypounder', 'puto', 'queaf', 'queef', 'queef', 'queer', 'queero', 'queers', 'quicky', 'quim', 'racy', 'rape', 'raped', 'raper', 'rapist', 'raunch', 'rectal', 'rectum', 'rectus', 'reefer', 'reetard', 'reich', 'retard', 'retarded', 'revue', 'rimjob', 'ritard', 'rtard', 'r-tard', 'rum', 'rump', 'rumprammer', 'ruski', 's.h.i.t.', 's.o.b.', 's0b', 'sadism', 'sadist', 'scag', 'scantily', 'schizo', 'schlong', 'screw', 'screwed', 'scrog', 'scrot', 'scrote', 'scrotum', 'scrud', 'scum', 'seaman', 'seamen', 'seduce', 'semen', 'sex', 'sexual', 'sh1t', 's-h-1-t', 'shamedame', 'shit', 's-h-i-t', 'shite', 'shiteater', 'shitface', 'shithead', 'shithole', 'shithouse', 'shits', 'shitt', 'shitted', 'shitter', 'shitty', 'shiz', 'sissy', 'skag', 'skank', 'slave', 'sleaze', 'sleazy', 'slut', 'slutdumper', 'slutkiss', 'sluts', 'smegma', 'smut', 'smutty', 'snatch', 'sniper', 'snuff', 's-o-b', 'sodom', 'souse', 'soused', 'sperm', 'spic', 'spick', 'spik', 'spiks', 'spooge', 'spunk', 'steamy', 'stfu', 'stiffy', 'stoned', 'strip', 'stroke', 'stupid', 'suck', 'sucked', 'sucking', 'sumofabiatch', 't1t', 'tampon', 'tard', 'tawdry', 'teabagging', 'teat', 'terd', 'teste', 'testee', 'testes', 'testicle', 'testis', 'thrust', 'thug', 'tinkle', 'tit', 'titfuck', 'titi', 'tits', 'tittiefucker', 'titties', 'titty', 'tittyfuck', 'tittyfucker', 'toke', 'toots', 'tramp', 'transsexual', 'trashy', 'tubgirl', 'turd', 'tush', 'twat', 'twats', 'ugly', 'undies', 'unwed', 'urinal', 'urine', 'uterus', 'uzi', 'vag', 'vagina', 'valium', 'viagra', 'virgin', 'vixen', 'vodka', 'vomit', 'voyeur', 'vulgar', 'vulva', 'wad', 'wang', 'wank', 'wanker', 'wazoo', 'wedgie', 'weed', 'weenie', 'weewee', 'weiner', 'weirdo', 'wench', 'wetback', 'wh0re', 'wh0reface', 'whitey', 'whiz', 'whoralicious', 'whore', 'whorealicious', 'whored', 'whoreface', 'whorehopper', 'whorehouse', 'whores', 'whoring', 'wigger', 'womb', 'woody', 'wop', 'wtf', 'x-rated', 'xxx', 'yeasty', 'yobbo', 'zoophile' ];
//split input
let splittedInput = this.s.split(' ');

//remove all swearwords
swearWords.forEach((swearWord) => {
splittedInput.forEach((word, index) =>{
if(word == swearWord){
splittedInput[index] = "BOBBA";
this.createBobba();
}
})
})
//combine words
this.s = splittedInput.join(" ");

}

/*
* Append bobba because someone was naughty
*/
private createBobba(){
let image = document.createElement('img');
image.src = 'images/habbo-dance.gif';
image.classList.add('bobba');

document.body.appendChild(image);
}

}
5 changes: 5 additions & 0 deletions les3/MT3A/DecoratorTextfield/dev/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ function handleSubmit(e) {
new EmojiDecorator(text)
).getText();
}
if(form.antiSwearify.checked) {
output_text += new ConcreteDecorator(
new AntiSwearDectorater(text)
).getText();
}

let output = document.getElementById("output");
output.style.display = "block";
Expand Down
22 changes: 22 additions & 0 deletions les3/MT3A/DecoratorTextfield/dist/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,25 @@ input[type="search"]::-webkit-search-decoration {
#output {
display: none;
}

.bobba{
position: fixed;
animation: bobba 5s linear 0s infinite;
z-index: -999;

}

@keyframes bobba{
0%{
top:0;
left:0;
}
50%{
left: calc(100vw - 200px);
top: calc(100vh - 200px);
}
100%{
top: 0;
left: 0;
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions les3/MT3A/DecoratorTextfield/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
<input type="checkbox" name="emojify" class="form-input">
<label>Emojify</label>
</div>
<div class="form-field">
<input type="checkbox" name="antiSwearify" class="form-input">
<label>Anti Swearify</label>
</div>
</form>
<p><br></p>
<div id="output"></div>
Expand Down
31 changes: 31 additions & 0 deletions les3/MT3A/DecoratorTextfield/dist/js/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion les3/MT3A/DecoratorTextfield/dist/js/main.js.map

Large diffs are not rendered by default.