We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22c5754 commit 9dfd51fCopy full SHA for 9dfd51f
geofs/geofs-addons/addon-scripts/chat-cleaner.js
@@ -1,13 +1,11 @@
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 })
+ item.innerHTML = profanityCleaner.clean(item.innerHTML, { exceptions: exeptions, customBadWords: newBad })
11
}
12
13
}, 2000);
0 commit comments