Repeating characters
![]() ![]() |
I noticed this script doesn't account for words with repeating characters. For example, if I want to filter out "wooooorrrrrrdddd", I would have to put in a new entry for it. I wrote up a function to replace each bad "word" with "(w+o+r+d+)+". This will detect "word", "wooorrrd", "wordwordwordword", and "woorddddddddwordwwwword", etc. All you do is add the function at the end of this post, and then change the line of
Just thought I'd let you know what I added for myself in case you wanted to add it to your script. function returnRepeatingCharactersRegex(strWord) {
return "(" + strNewWord + ")+"; // this lets it find multiples of the same word
|
![]() ![]() |
Wow, thank you very much for sharing that code!!!! This has blocked some more instances of words I don't like! I added it to my already-personalised-over-time melon's censor, which looks to be the same identical code [works anyway] :D. |
![]() ![]() |
Those changes don't seem to work. |


