forked from WitchTP/Tagpro-Userscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpoliteText.js
273 lines (268 loc) · 6.95 KB
/
politeText.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
// ==UserScript==
// @name Polite Text
// @updateURL https://raw.githubusercontent.com/WitchTP/Tagpro-Userscripts/master/politeText.js
// @version 1.4b7
// @include http://tagpro-*.koalabeast.com:*
// @include http://tangent.jukejuice.com:*
// @include http://maptest*.newcompte.fr:*
// @author Witch
// ==/UserScript==
/*
* Left-hand side of the map must be lowercase and without spaces or punctuation.
* Right-hand side can be anything you want, but make sure that the syntax is valid.
*/
var politeMap = {
'fuck': 'love',
'fuk': 'love',
'fucks': 'things',
'fucked': 'messed',
'fucking': 'loving',
'fuckin': 'lovin',
'fucken': 'lovin',
'fuken': 'lovin',
'fukin': 'lovin',
'fak': 'love',
'fook': 'love',
'fookin': 'lovin',
'fooking': 'loving',
'fuc': 'love',
'fucin': 'lovin',
'fucing': 'loving',
'feck': 'love',
'feckin': 'lovin',
'fecking': 'loving',
'fk': '<3',
'fck': 'love',
'fckin': 'lovin',
'fcking': 'loving',
'fcken': 'lovin',
'fken': 'lovin',
'fckn': 'lovin',
'fkn': 'lovin',
'turd': 'cake',
'turds': 'cakes',
'shitting': 'hugging',
'shit': 'sorry',
'shat': 'apologized',
'shits': 'sits',
'shitface': 'pal',
'shitfaced': 'happy',
'bitch': 'lady',
'bitches': 'ladies',
'bitchy': 'lovely',
'biatch': 'lady',
'biatchs': 'ladies',
'biatches': 'ladies',
'hate': 'care about',
'hates': 'cares about',
'suck': 'win',
'sucks': 'wins',
'fucker': 'friend',
'fuckers': 'friends',
'nigger': 'juker',
'niggers': 'jukers',
'nig': 'juke',
'nigs': 'jukes',
'nigga':' juker',
'niggas': 'jukers',
'niggah': 'juker',
'niggahs': 'jukers',
'dick': 'bunny',
'dicks': 'bunnies',
'pussy': 'kitty',
'puss': 'kitty',
'pussies': 'kitties',
'asshole': 'angel',
'assholes': 'angels',
'ass': 'posterior',
'asses': 'posteriors',
'gay': 'cool',
'gays': 'cool people',
'queer': 'cool',
'queers': 'cool people',
'fag': 'nice person',
'fags': 'nice people',
'faggot': 'nice person',
'faggots': 'nice people',
'fagit': 'nice person',
'fagits': 'nice people',
'fagtit': 'nice chest',
'fagtits': 'nice chest',
'fagot': 'nice person',
'fagots': 'nice people',
'fagott': 'nice person',
'fagotts': 'nice people',
'faggott': 'nice person',
'faggotts': 'nice people',
'faget': 'nice person',
'fagets': 'nice people',
'fagget': 'nice person',
'faggets': 'nice people',
'faggett': 'nice person',
'faggetts': 'nice people',
'fgt': 'nice person',
'fgts': 'nice people',
'fuckface': 'friend',
'cunt': 'pro',
'cunts': 'pros',
'cuntface': 'buddy',
'thundercunt': 'BFF',
'motherfucker': 'pal',
'motherfuckers': 'pals',
'mofo': 'pal',
'mofos': 'pals',
'jew': 'buddy',
'jews': 'buddies',
'kike': 'friend',
'gook': 'friend',
'chink': 'friend',
'bg': 'gg',
'jewish': 'nice',
'shithead': 'pal',
'noob': 'newbie',
'fucktard': 'fun person',
'fucktards': 'fun people',
'dicklicker': 'nice person',
'dicklickers': 'nice people',
'clit': 'bunny',
'clits': 'bunnies',
'stupid': 'smart',
'moron': 'smart person',
'morons': 'smart people',
'idiot': 'smart person',
'idiots': 'smart people',
'dolt': 'smart person',
'dolts': 'smart people',
'dunce': 'smart person',
'dunces': 'smart people',
'retard': 'smart person',
'retards': 'smart people',
'retarded': 'smart',
'loser': 'good sport',
'losers': 'good sports',
'tard': 'smart person',
'tards': 'smart people',
'insufferable': 'pretty',
'douche': 'pal',
'douchebag': 'companion',
'douchecanoe': 'loveboat',
'clitoris': 'bunny',
'penis': 'bunny',
'vagina': 'bunny',
'penises': 'bunnies',
'vaginas': 'bunnies',
'vag': 'bunny',
'slut': 'lovely person',
'sluts': 'lovely people',
'slutty': 'lovely',
'whore': 'lady',
'whores': 'ladies',
'cancer': 'rich',
'die': 'succeed',
'dies': 'succeeds',
'dumb': 'pretty',
'anus': 'posterior',
'crap': 'sorry',
'crapped': 'apologized',
'anal': 'charity',
'piss': 'hug',
'pisses': 'hugs',
'wank': 'love',
'wanker': 'friend',
'wanking': 'loving',
'wanks': 'loves',
'poof': 'cool',
'poofter': 'cool person',
'poofters': 'cool people',
'lesbian': 'cool',
'lesbians': 'cool people',
'lesbo': 'cool',
'lesbos': 'cool people',
'lesboes': 'cool people',
'dyke': 'cool person',
'dykes': 'cool people',
'tranny': 'nice person',
'scum': 'buddy',
'scummy': 'beautiful',
'motherfucking': 'loving',
'motherfucken': 'loving',
'motherfuckin': 'loving',
'motherfuken': 'loving',
'motherfukin': 'loving',
'cock': 'bunny',
'cocksucker': 'amigo',
'cocksucking': 'beautiful',
'dumbass': 'cool person',
'dumass': 'cool person',
'dummass': 'cool person',
'bollock': 'apology',
'bollocks': 'apologies',
'bollok': 'apology',
'bolloks': 'apologies',
'bolock': 'apology',
'bolocks': 'apologies',
'bolok': 'apology',
'boloks': 'apologies',
'tit': 'bird',
'tits': 'birds',
'nipple': 'bead',
'nipples': 'beads',
'cum': 'milk',
'cums': 'spills',
'cummed': 'spilled',
'cumguzzler': 'consumer',
'semen': 'milk',
'sex': 'fun',
'cunnilingus': 'dinner',
'blowjob': 'lunch',
'blow': 'feed',
'blows': 'feeds',
'jizz': 'milk',
'jizzes': 'spills',
'jizzed': 'spilled',
'boner': 'pencil',
'boners': 'pencils',
'smegma': 'butter',
'labia': 'bunny',
'twat': 'great person',
'twats': 'great people',
'felch': 'swallow',
'felching': 'swallowing',
'felches': 'swallows',
'garbage': 'awesome',
'gabage': 'awesome',
'garbag': 'awesome',
'garbae': 'awesome'
};
function addToTagproReady(fn) {
if (typeof tagpro !== "undefined") {
tagpro.ready(fn);
} else {
setTimeout(function() {
addToTagproReady(fn);
}, 0);
}
}
function getPoliteText(message) {
var politeText = message;
var words = message.match(/\S+/g); // split up text based on whitespace
for (var index in words) {
var word = words[index].replace(/[\.,-\/#!$%\^&\*;:{}=\-_`~\[\]()\+\'\"\\\?]/g,''); // strip punctuation
var lowerWord = word.toLowerCase();
if (lowerWord in politeMap) {
politeText = politeText.replace(word, politeMap[lowerWord]);
}
}
return politeText;
}
addToTagproReady(function() {
var baseEmit = tagpro.socket.emit;
tagpro.socket.emit = function(emitType, data) {
if (emitType === 'chat') {
var politemsg = getPoliteText(data['message']);
return baseEmit(emitType, { message:politemsg, toAll:data['toAll'] });
} else {
return baseEmit(emitType, data);
}
};
});