@@ -53,34 +53,21 @@ function setCaretPosition(element, offset) {
53
53
const processNewlyAddedNodesGeneral2 = function ( firstBody ) {
54
54
55
55
// const config = { attributes: true, childList: true, subtree: true };
56
-
57
56
console . log ( "HEY THERE !!!" )
58
- let targetWords = [ "Blog" , "BLOG" , "Choose" , "domain" , "bad" , "BAD" , "Bad" , "Stupid" , "STUPID" , "stupid" , "crazy" , "Crazy" , "mad" , "Mad" , "MAD" , "CRAZY" , "ABLANARI" , "AblaNari" , "ablanari" , "chakka" ,
59
- "jihidis" , "Jihadi" , "Jihidi" , "zehadi" , "jehadan" ,
60
- "Chakko" , "chakki" , "chaka" , "Chinal" , "Randi" , "ramdi" , "Randie" , "randya" , "randikhana" ,
61
- "Lulli" , "Gasti" , "Meetha" , "Halwa" , "Gud" , "Gandu" , "Gaand" , "Gandiaal" , "lodu" , "kutiya"
62
-
63
- ]
64
-
65
- // "जिहादी", "छक्का", "छिनाल", "रंडी", "रण्डी", "रांड", "रंडीखाना", "लुल्ली", "गांड", "कुतिया", "कुत्ती", "बत्तमीज़", "कुल्टा", "हरामजादी", "साली", "चुदाई", "भोस्डीके", "लोड़ू", "मादरचोद", "लानती", "छुतीये", "चूत", "लौड़ा", "लौड़े", "लिब्राण्डू", "पुंगी", "पागल", "बाज़ारू", "बलात्कार", "बदसूरत", "मुजरा", "औरत-ए-जाहिल", "भोसड़ीwala", "म्लेच्छा", "सूअर", "दोगली", "🏹🏹", "पनौती", "हरामी", "गधी", "पिछवाड़ा", "हगना", "सुल्ली", "हिज़रापंती", "तवाइफ़", "किन्नर", "गद्दार", "चमचा", "चमची", "आतंकवादी", "मुलिया", "Katwa", "चाटुकार", "चुस्लिम", "चुस्लामि", "चुसल्मान", "चूस", "भीमटा", "भीमटी", "बैल", "भद्दी", "भांड", "भाड़े", "नल्ली", "मादरजात", "भड़वा", "चूची", "टट्टी", "मूत", "नाजायज़", "देहातन", "देहाती", "गणिका", "हबशी",
66
-
67
- let slurList = [ "kutti" , "Badchalan" , "Battameez" , "kulta" , "haramjadi" , "dyan" , "saali" , "sali" , "chooda" , "chuda" , "Bhdsk" , "bsdk" , "bhosad" , "bhosdiwale" , "Lodu" , "bhenchod" , "Madarchod" , "Maderchod" , "mcp" , "mc" , "Lanti" , "chutiye" , "chutiya" , "chutie" , "chutia" , "chutan" , "Lavde" , "Rakhail" , "librandu" , "bazaru" , "balatkar" , "Ugly" , "Mujra" , "mujra" , "hilana" , "hilaogi" , "Mlechcha" , "Suar" , "doghli" , "Panauti" , "panooti" , "harami" , "gadhi" , "kalmuhi" , "pichwada" , "jhadu" , "bai" , "naali" , "hagna" , "Sulli" , "Tawaif" , "Dhimmihood" , "izzlam" , "gaddar" , "chamcha" , "chamchi" , "aatankwadi" , "Mulliya" , "Uncut" , "chatukar" , "Kachra" , "Chuslim" , "chuslami" , "Chusalmans" , "Bhimta" , "Budhdhi" , "Gatiya" , "nalli" , "bhootni" , "madarjaat" , "bhadva" , "bhadvi" , "bhandve" , "chuchi" , "tatti" , "mooh" , "mutth" , "Pataka" , "Ganika" , "chewtypa" , "atrocuty_act" , "RandiKutiya" , "sulli" , "lovejihad" , "dull-it" , "Presstitutes" , "libtard" , "bimbo" , "slims" , "faggot" , "Sissy" , "whore" , "chrislamocommies" , "piddilover" , "Chinks" , "chinky" , "Feminazi" , "Mulli" , "halala" , "Scumreds" , "scumbags" , "burnol" , "pheminist" , "dented-painted" , "Muzlim" , "Buzlim" , "Izzlam" , "pissfull" , "Simp" , "Bitch" , "sekoolar" , "sickular" , "Ferrorists" , "Cunt" , "Slut" , "pussy" , "ugly" , "promiscuous" , "fat" , "fag" , "homo" , "hoe" , "motherfucker" , "sisterfucker" , "bastard" , "bint" , "dyke" , "gash" , "muslimette" , "muttah" , "scag" , "assfucker" , "boobs" , "boobies" , "Melons" , "lesbain" , "moslem" , "nasty" , "redlight" , "nymph" , "piss" , "pimp" , "poop" , "pube" , "puke" , "retarded" , "slave" , "sissy" , "mothafucka" , "mothafucked" , "mothafucker" , "motherfucked" , "motherfucking" , "lesbain" , "lesbayn" , "lesbian" , "lesbin" , "lesbo" , "nastyslut" , "nastywhore" , "nastybitch" , "nastyho" , "Koodhi" , "pottai" , "Aththai" , "athai" , "loosu" , "fuck" , "cunt" , "stupid" , "Stupid" , "crazy" , "Crazy" , "mad" , "MAD" ] ;
68
-
57
+ let targetWords = [ "Blog" , "BLOG" , "Choose" , "domain" , "bad" , "BAD" , "Bad" , "Stupid" , "STUPID" , "stupid" , "crazy" , "Crazy" , "mad" , "Mad" , "MAD" , "CRAZY" , "ABLANARI" , "AblaNari" , "ablanari" , "chakka" , "jihidis" , "Jihadi" , "jihadi" , "Jihidi" , "zehadi" , "jehadan" , "jihadinon" , "Chakko" , "chakki" , "chaka" , "Chinal" , "Randi" , "ramdi" , "randya" , "Lulli" , "Gasti" , "Meetha" , "Halwa" , "Gud" , "Gandu" , "Gaand" , "Gandiaal" , "lodu" ]
69
58
70
59
// let targetWords = slurList ;
71
60
let uliStore = [ ]
72
61
// getAllTextNodes(document.body, uliStore)
73
62
getAllTextNodes ( firstBody , uliStore )
74
- // console.log(uliStore)
63
+ console . log ( uliStore )
75
64
abc = locateSlur ( uliStore , targetWords )
76
- // console.log("uliStore", abc)
65
+ console . log ( "uliStore" , abc )
77
66
addMetaData ( targetWords )
78
67
}
79
68
80
69
81
70
82
-
83
-
84
71
const processNewlyAddedNodesGeneral = function ( firstBody ) {
85
72
log ( 'processing new nodes' ) ;
86
73
const config = { attributes : true , childList : true , subtree : true } ;
@@ -183,8 +170,7 @@ function locateSlur(uliStore, targetWords) {
183
170
if ( Object . keys ( pos ) . length !== 0 ) {
184
171
slurs . push ( pos )
185
172
}
186
-
187
-
173
+
188
174
if ( tempParent . innerHTML . includes ( targetWord ) ) {
189
175
const className = `icon-container-${ targetWord } ` ;
190
176
const parts = tempParent . innerHTML . split ( targetWord ) ;
@@ -221,7 +207,6 @@ function locateSlur(uliStore, targetWords) {
221
207
function addMetaData ( targetWords ) {
222
208
targetWords . forEach ( targetWord => {
223
209
const className = `icon-container-${ targetWord } `
224
- console . log ( className )
225
210
const elements = Array . from ( document . querySelectorAll ( `.${ className } ` ) )
226
211
elements . forEach ( element => {
227
212
@@ -269,20 +254,18 @@ function addMetaData(targetWords) {
269
254
270
255
271
256
272
- // if (targetWord.toLowerCase() === "crazy") {
273
- // span.innerHTML = `It can perpetuate stereotypes about mental health and may be hurtful to those with mental health conditions.`
274
- // }
275
- // else if (targetWord.toLowerCase() === "mad") {
276
- // span.innerHTML = `Using "mad" to describe someone negatively can be insensitive.`
277
- // }
278
- // else if (targetWord.toLowerCase() === 'stupid') {
279
- // span.innerHTML = `Describing actions or decisions as "stupid" can be demeaning and hurtful.`
280
- // }
281
- // else {
282
- //
283
- // }
284
-
285
- span . innerHTML = `This word is considered offensive.`
257
+ if ( targetWord . toLowerCase ( ) === "crazy" ) {
258
+ span . innerHTML = `It can perpetuate stereotypes about mental health and may be hurtful to those with mental health conditions.`
259
+ }
260
+ else if ( targetWord . toLowerCase ( ) === "mad" ) {
261
+ span . innerHTML = `Using "mad" to describe someone negatively can be insensitive.`
262
+ }
263
+ else if ( targetWord . toLowerCase ( ) === 'stupid' ) {
264
+ span . innerHTML = `Describing actions or decisions as "stupid" can be demeaning and hurtful.`
265
+ }
266
+ else {
267
+ span . innerHTML = `This word is considered offensive.`
268
+ }
286
269
287
270
288
271
sup . appendChild ( img )
0 commit comments