Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f1ff5eb

Browse files
committedAug 31, 2024·
updating slurList v 1.0.0
1 parent f3fee9a commit f1ff5eb

File tree

1 file changed

+16
-33
lines changed

1 file changed

+16
-33
lines changed
 

‎browser-extension/plugin/src/transform-general.js

+16-33
Original file line numberDiff line numberDiff line change
@@ -53,34 +53,21 @@ function setCaretPosition(element, offset) {
5353
const processNewlyAddedNodesGeneral2 = function (firstBody) {
5454

5555
// const config = { attributes: true, childList: true, subtree: true };
56-
5756
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"]
6958

7059
// let targetWords = slurList ;
7160
let uliStore = []
7261
// getAllTextNodes(document.body, uliStore)
7362
getAllTextNodes(firstBody, uliStore)
74-
// console.log(uliStore)
63+
console.log(uliStore)
7564
abc = locateSlur(uliStore, targetWords)
76-
// console.log("uliStore", abc)
65+
console.log("uliStore", abc)
7766
addMetaData(targetWords)
7867
}
7968

8069

8170

82-
83-
8471
const processNewlyAddedNodesGeneral = function (firstBody) {
8572
log('processing new nodes');
8673
const config = { attributes: true, childList: true, subtree: true };
@@ -183,8 +170,7 @@ function locateSlur(uliStore, targetWords) {
183170
if (Object.keys(pos).length !== 0) {
184171
slurs.push(pos)
185172
}
186-
187-
173+
188174
if (tempParent.innerHTML.includes(targetWord)) {
189175
const className = `icon-container-${targetWord}`;
190176
const parts = tempParent.innerHTML.split(targetWord);
@@ -221,7 +207,6 @@ function locateSlur(uliStore, targetWords) {
221207
function addMetaData(targetWords) {
222208
targetWords.forEach(targetWord => {
223209
const className = `icon-container-${targetWord}`
224-
console.log(className)
225210
const elements = Array.from(document.querySelectorAll(`.${className}`))
226211
elements.forEach(element => {
227212

@@ -269,20 +254,18 @@ function addMetaData(targetWords) {
269254

270255

271256

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+
}
286269

287270

288271
sup.appendChild(img)

0 commit comments

Comments
 (0)
Please sign in to comment.