Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
Great script, however I noticed that it doesn't take into account underscores. ( _ )
|
|
|
F*ck This F***ing Script! I f*cking hate this god d@mn sh*t!!! Lol, I don't really hate it. Just testing the script, b*tch! :) |
|
|
Bug: "motherboards" gets incorrectly changed to "motherfuckds" which itself is spelled wrong. |
|
|
Maybe not as hard as you think, you just need to work on the uncensor() function, pass it the node instead of node.data.
|
|
|
I don't deserve most of the credit. I just fixed all the regexp stuff and cleaned up the overall functions. The basic structure is mostly the original author's.
I was going to add custom formatting for the uncensored words, like on my updated linkifier script, but the way the prior author had the script finding and replacing words makes it impossible, and I couldn't figure out how to rewrite it to do what I wanted easily. |
|
|
0/1 is only shorthand for true/false, though I use 0/1 sometimes like in Perl, logic circuits are literally true/false, not numbers and 1 is definitely a number not literally equal to true.
Good job this script is impressive, I didn't even know text nodes had a "data" property, so I learned a few things. |
|
|
Woops. Yeah, I have it as 1 on my box so I must have just forgotten to set it back last time. I figured 0 and 1 make more sense ( that's all boolean true false is essentially ) but true false is probably more correct. |
|
|
I noticed that
Also, it might be better to use true or false since you are checking for boolean and 1 is a number not exclusively true, or I should say the number 0 is not exclusively false.
|
|
|
It may be a little slower or a little faster than the original; I'm not sure. I know it does more, and I took out some unneeded parts, but couldn't rewrite the entire function structure. Javascript isn't a language I know really well. |