Conversation
Notices
-
@sprite it works now on new dashes in case you wanted to update it
Sunday, 22-Dec-13 16:55:13 UTC from web-
Updated the filter so now "massive" and similar words are left alone. Not perfect still, but getting there bit by bit http://pastebin.com/evXj4be5 !coderpony #nsfw language
-
@tia yep caught it
-
@tia oh what about "shell"?
-
@tia Use \b to match word boundaries. Also reference http://pny.lv/2op
-
@tia assassin
-
@sprite you have to refresh since it doesn't apply to new notices, only old ones. kinda lame
-
@redenchilada yeah. I just wasn't sure whether "-" was included in the delimiters for /b
-
@tia document.addEventListener("DOMNodeInserted", function(event) {
var element = event.target;
// run function on element (treat it like a DOM node)
}, false); -
@tia Also your asterisks need to be escaped in your regexes, since an asterisk has a special meaning of "the proceeding character zero or more times"
-
@redenchilada oh!!
-
@redenchilada The replace function takes a regex plus a replacement string, so the asterisks I used within quotes should be alright. I haven't had any problems yet anyway. I love the tips though. Thanks!
-
@snowcone Feels good pony!
-
@tia Oh, I see. The last one you posted got filtered before it was posted. lol
-
@redenchilada hehe! I purposefully used greek characters to know when the filter caught something.
-
@redenchilada Where would I insert this into the code? I'd try guessing, but I'd rather understand. My best guess is before I evaluate document for textnodes.
-
@redenchilada figured it out nevermind.
-
@snowcone JS is a very useful one. I'm still struggling with C++
-
@snowcone Python was easy to learn after Java, but I've kind of forgotten it since I haven't used Python in a while and I didn't use it much before.
-