Conversation
Notices
-
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
Sunday, 22-Dec-13 15:55:42 UTC from web-
@tia I don't know the delimiters for Javascript's end/beginning of word modifier in regex so I don't know whether it will catch #testing
Sunday, 22-Dec-13 16:04:11 UTC from web-
@tia yep caught it
Sunday, 22-Dec-13 16:04:33 UTC from web-
@tia oh what about "shell"?
Sunday, 22-Dec-13 16:09:37 UTC from web
-
-
@tia Use \b to match word boundaries. Also reference http://pny.lv/2op
Sunday, 22-Dec-13 16:09:47 UTC from web-
@redenchilada yeah. I just wasn't sure whether "-" was included in the delimiters for /b
Sunday, 22-Dec-13 16:13:29 UTC from web
-
-
@tia assassin
Sunday, 22-Dec-13 16:10:39 UTC from web -
@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"
Sunday, 22-Dec-13 16:19:13 UTC from web-
@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!
Sunday, 22-Dec-13 16:22:03 UTC from web-
@tia Oh, I see. The last one you posted got filtered before it was posted. lol
Sunday, 22-Dec-13 16:23:11 UTC from web-
@redenchilada hehe! I purposefully used greek characters to know when the filter caught something.
Sunday, 22-Dec-13 16:28:11 UTC from web
-
-
-
-
-
@sprite you have to refresh since it doesn't apply to new notices, only old ones. kinda lame
Sunday, 22-Dec-13 16:11:27 UTC from web-
@tia document.addEventListener("DOMNodeInserted", function(event) {
var element = event.target;
// run function on element (treat it like a DOM node)
}, false);Sunday, 22-Dec-13 16:17:27 UTC from web-
@redenchilada oh!!
Sunday, 22-Dec-13 16:19:20 UTC from web -
@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.
Sunday, 22-Dec-13 16:31:13 UTC from web-
@redenchilada figured it out nevermind.
Sunday, 22-Dec-13 16:35:29 UTC from web
-
-
-
-
@snowcone Feels good pony!
Sunday, 22-Dec-13 16:22:51 UTC from web -
@snowcone JS is a very useful one. I'm still struggling with C++
Sunday, 22-Dec-13 16:39:37 UTC from web -
@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.
Sunday, 22-Dec-13 16:40:57 UTC from web -
@sprite it works now on new dashes in case you wanted to update it
Sunday, 22-Dec-13 16:55:13 UTC from web
-