Author |
Message |
The Opponent
Title: Forum Battle WINNER
Joined: Feb 24 2010
Location: The Danger Zone
Posts: 3495
|
Case in point: Hideo Kojima
|
 I'm not a bad enough dude, but I am an edgy little shit. I'll do what I can. |
|
   |
|
Syd Lexia
Site Admin
Title: Pop Culture Junkie
Joined: Jul 30 2005
Location: Wakefield, MA
Posts: 24882
|
|
     |
|
The Opponent
Title: Forum Battle WINNER
Joined: Feb 24 2010
Location: The Danger Zone
Posts: 3495
|
Mr. KojI am going to doesn't appreciate.
|
 I'm not a bad enough dude, but I am an edgy little shit. I'll do what I can. |
|
   |
|
@om*d
Title: Dorakyura
Joined: Jul 10 2010
Location: Castlevania
Posts: 4226
|
I noticed it with Hiroshima but not with a word like images. I guess the letters have to be at the end of the word.
|
|
|
   |
|
The Opponent
Title: Forum Battle WINNER
Joined: Feb 24 2010
Location: The Danger Zone
Posts: 3495
|
It could be fixed with a regular expression.
|
 I'm not a bad enough dude, but I am an edgy little shit. I'll do what I can. |
|
   |
|
sidewaydriver
2010 SLF Tag Champ
Title: ( ͡� 
Joined: May 11 2008
Posts: 6160
|
Lima beans
|
 Shake it, Quake it, Space Kaboom. |
|
  |
|
Preng
Title: All right, that's cool!
Joined: Jan 11 2010
Location: Accounting Dept.
Posts: 1690
|
|
  |
|
sidewaydriver
2010 SLF Tag Champ
Title: ( ͡� 
Joined: May 11 2008
Posts: 6160
|
We should make a movie about this. I'd pay to see it in the cinima.
|
 Shake it, Quake it, Space Kaboom. |
|
  |
|
Klimbatize
2010 NES Champ
Title: 2011 Picnic/Death Champ
Joined: Mar 15 2010
Location: Las Vegas, NV
Posts: 4996
|
I remember when I was a kid living in Pima County, Arizona, and one time my dad said, "Li'l Klima, pass me the Aunt Jemima." My brother was playing Ultima Online, using his Prima strategy guide. He enjoyed exploring his anima, so he always played as a female character. Our neighbor knocked on the door and said "I just set up this new Optima Home Theater system, check it out!" He played us a documentary about the last living arapaima fish who had somehow wound up in Bima, Indonesia. The sima seemed to literally rock as I watched it all unfold. "Ima get one of these when I grow up in Lima, Peru," I promised myself.
|
|
|
   |
|
sidewaydriver
2010 SLF Tag Champ
Title: ( ͡� 
Joined: May 11 2008
Posts: 6160
|
Klimb is such a prima donna.
|
 Shake it, Quake it, Space Kaboom. |
|
  |
|
koakuma
Joined: Apr 14 2012
Posts: 28
|
Maybe to correct that you should put a space before the imas that should get changed.
Like that, normal words finishing by "ima" wouldn't get changed, like ultima, anima, lima (even if those words aren't used often)
I'm wondering if mistakes like that could be done with the other forbidden words like prolly and pwease.
I don't think any words finishes by pwease, though.
|
|
|
   |
|
GPFontaine
Joined: Dec 06 2007
Location: Connecticut
Posts: 11244
|
Current Code:
Code: |
(^||\w|[a-z])Word to Replace(?=([^a-zA-Z]|$)) |
Feel free to help out!
ima
Ima
ima!
Testing Ima and Ima
|
|
|
   |
|
The Opponent
Title: Forum Battle WINNER
Joined: Feb 24 2010
Location: The Danger Zone
Posts: 3495
|
^word$ should be enough, no?
Good thing I took a reference screenshot. And I forgot to test it with 今.
|
 I'm not a bad enough dude, but I am an edgy little shit. I'll do what I can. |
|
   |
|
GPFontaine
Joined: Dec 06 2007
Location: Connecticut
Posts: 11244
|
The-Excel wrote: |
^word$ should be enough, no?
Good thing I took a reference screenshot. And I forgot to test it with 今. |
The trouble I am having is that javascript doesn't have the ability to do a look behind. So I can't easily tell what character comes before the first letter of the string.
I am thinking about running through the process twice... forwards, reverse everything, then backwards.. a bit more code, but it might work.
|
|
|
   |
|
sidewaydriver
2010 SLF Tag Champ
Title: ( ͡� 
Joined: May 11 2008
Posts: 6160
|
This word filtering is making me thirsty. I could sure go for a Zima right now.
|
 Shake it, Quake it, Space Kaboom. |
|
  |
|
GPFontaine
Joined: Dec 06 2007
Location: Connecticut
Posts: 11244
|
GPFontaine wrote: |
Current Code:
Code: |
(^||\w|[a-z])Word to Replace(?=([^a-zA-Z]|$)) |
Feel free to help out!
ima
Ima
ima!
Testing Ima and Ima |
Update:
Code: |
RegExp('(^|[^[a-zA-Z0-9\'\"\S\w])' + word_to_replace + '(?=([^a-zA-Z]|$))', 'gi'); |
~ima `ima !ima @ima #ima $ima %ima ^ima &ima *ima (ima )ima -ima _ima +ima =ima
|
|
|
   |
|
Klimbatize
2010 NES Champ
Title: 2011 Picnic/Death Champ
Joined: Mar 15 2010
Location: Las Vegas, NV
Posts: 4996
|
Well now my earlier post just looks nonsensical.
|
|
|
   |
|
@om*d
Title: Dorakyura
Joined: Jul 10 2010
Location: Castlevania
Posts: 4226
|
Klimbatize wrote: |
Well now my earlier post just looks nonsensical. |
I just read it and it is still a great post. I wanted to do something like that but I was tired and went to sleep instead.
Good job!
|
|
|
   |
|
Syd Lexia
Site Admin
Title: Pop Culture Junkie
Joined: Jul 30 2005
Location: Wakefield, MA
Posts: 24882
|
Wait, what? Is there a separate word filter from the admin word filter that I have personal and singular control over? Because the word filter that I have in place via the phpBB software doesn't have "ima" in it.
|
|
|
     |
|
UsaSatsui
Title: The White Rabbit
Joined: May 25 2008
Location: Hiding
Posts: 7565
|
"Pwease" should get you banned from the forums for 24 hours.
|
|
|
  |
|
GPFontaine
Joined: Dec 06 2007
Location: Connecticut
Posts: 11244
|
Syd Lexia wrote: |
Wait, what? Is there a separate word filter from the admin word filter that I have personal and singular control over? Because the word filter that I have in place via the phpBB software doesn't have "ima" in it. |
Sorry Syd, I'll explain.
A few weeks ago this thread popped up:
http://www.sydlexia.com/forums/viewtopic.php?t=17493
As a joke I set a javascript parser to cross out and red bold the corrections to all of the infractions in that thread. For better or for worse, I had thought I set a thread restriction to the parser. I realized today when this thread popped up that it was live on the rest of the forums.
At this point we can do any of the following:
1. Turn it off (it doesn't actually modify the content of the post, so no posts have been altered)
2. Turn it off except in the thread I intended for it to be in (fix the mistake) Edit: Until I hear from Syd, I fixed the code to make sure this only exists as a joke in the thread it was intended to be in.
3. Keep it on as is
4. Build on what exists and create a file that offers some toggle control (essentially make it more of an actual tool than a joke)
Whatever you like.
If you are interested this is how it works. A JS file calls the following functions
Code: |
syd_page_content_mod(ORIGINAL_TEXT,REPLACEMENT_TEXT); |
Code: |
syd_page_content_mod("pwease", "please");
syd_page_content_mod("prolly", "probably");
syd_page_content_mod("adleast", "at least");
syd_page_content_mod("sammich", "sandwich");
syd_page_content_mod("ima", "I am going to");
syd_page_content_mod("Carson Daly is not a homo", "Carson Daly is definitely a homo"); |
This is the actual code that drives the replacement:
Code: |
function syd_page_content_mod(word_to_replace, replacement_text) {
var text_to_search = $('#thread_table').html();
//var pattern = RegExp('(^||\w)' + word_to_replace + '(?=([^a-zA-Z]|$))', 'gi');
pattern = RegExp('(^|[^[a-zA-Z0-9\'\"\S\w])' + word_to_replace + '(?=([^a-zA-Z]|$))', 'gi');
var search_error = text_to_search.search(pattern);
if(search_error != -1) {
text_to_search = text_to_search.replace(pattern, " <s><span style='color:white;'>" + word_to_replace + "</span></s> <span style='color:red;font-weight:bold;'>" + replacement_text + "</span>");
$('#thread_table').html(text_to_search);
}
search_error = "";
pattern = "";
} |
|
|
|
   |
|
The Opponent
Title: Forum Battle WINNER
Joined: Feb 24 2010
Location: The Danger Zone
Posts: 3495
|
The funny thing about this is that I discovered this glitch (if you could call it that) while reading through older threads researching a point I was trying to make. I was looking at Kojima's name for a good 10 seconds trying to figure out what happened and noticed that the "ima" was the only part crossed out, and realized it was on the list of banned words. Then I made this thread and completely forgot what thread I was replying to earlier.
|
 I'm not a bad enough dude, but I am an edgy little shit. I'll do what I can. |
|
   |
|
Syd Lexia
Site Admin
Title: Pop Culture Junkie
Joined: Jul 30 2005
Location: Wakefield, MA
Posts: 24882
|
Yeah, I think I want it gone. I prefer my stealth word filter that doesn't make it immediately obviously that something's been censored.
|
|
|
     |
|
JRA
Joined: Sep 17 2007
Location: The Opium Trail
Posts: 3475
|
I thought that thing was turned off permanently after the sammich debacle.
|
 There are a lot of what if's in life Donny. What if I hit you really hard in the face, knocked yo shit to the back of yo skull? What if I....had you girl gargle my nuts? The fact remains, you are a fuckin mutant. |
|
  |
|
|