Skip to content

Commit 659b1fc

Browse files
Create Chat-cleaner.js
1 parent a4eb6d1 commit 659b1fc

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Chat-cleaner.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
'use strict'
2+
setTimeout(function(){
3+
var exectionalWords = exeptions;
4+
//var badWordsArray = newBad;
5+
console.log("Chat running");
6+
setInterval(clean, 100);
7+
function clean() {
8+
let chat = document.getElementsByClassName('geofs-chat-message')
9+
for (let item of chat) {
10+
item.innerHTML = profanityCleaner.clean(item.innerHTML, { exceptions: exectionalWords })
11+
}
12+
}
13+
}, 2000);

0 commit comments

Comments
 (0)