Nick Jr. does the same thing and it is annoying to get the filter trip messages about it.
I think there must be a better way. While the user never sees the list, the site does try to retrieve it. Clearly it is used for basic filtering of comments, but it is a lazy and (for me, a content filter administrator) annoying. --Michael T. Bendorf-- Technology Administrator A-C Central C.U.S.D. #262 217.476.3312 ext. 2019 DID #: 217.476.6019 Cellular: 217.306.6824 "I'm trying to teach myself to ask the same questions that you do during your lectures so that I do not need you any more." A good teacher is like a candle - it consumes itself to light the way for others. "The computer revolution hasn't started yet. Don't be misled by the enormous flow of money into bad defacto standards for unsophisticated buyers using poor adaptations of incomplete ideas." - Alan Kay On Thu, Aug 19, 2010 at 1:02 PM, Eric Barringer <[email protected]>wrote: > I'd guess they're displaying Twitter messages on the page, and trying to > filter portions of the message, replacing bad words with something else. > > -Eric > > On Thu, Aug 19, 2010 at 12:49 PM, Scott Williams < > [email protected]> wrote: > >> Looking at our filter today I noticed a pornography hit on a webpage. >> >> it was msnbc.msn.com , I thought maybe my filter company was making a >> political statement, but looking a little closer, the link took me to this >> page http://www.msnbc.msn.com/id/33589610 >> >> a segment of it is below. Can someone explain this filterProfanity thing >> and why a legitimate site would purposely put it into their code? Maybe I >> can learn something. >> >> filterProfanity(tweet){ var badwords = >> ["shit","piss","fuck","cunt","cocksucker","motherfucker","tits"].join("|"); >> var filter = new RegExp(badwords,"gi"); var m = tweet.match(filter); if(m){ >> for(var i=0;i"; if(showLinks=="true"){ var charLimit = 37; var m = >> item.text.match(/((https?\:\/\/)|(www\.))(\S+)(\w{2,4})(:[0-9]+)?(\/|\/([\w#!:.?+=&%...@!\-\/]))?/gi); >> // >> /((https?\:\/\/)|(www\.))(\S+)(\w{2,4})(:[0-9]+)?(\/|\/([\w#!:.?+=&%...@!\-\/]))?/gi >> // /(((https?\:\/\/)|(www\.))[^"\s\<\>]*[^.,;'">\:\s\<\>\)\]\!])/gi if(m){ >> for(var i=0;i"+ ( (m[i].length > charLimit) ? >> (m[i].substring(0,charLimit)+"…") : m[i] ) >> +"<http://www.msnbc.msn.com/id/%5C%22%22+m%5Bi%5D+%22%5C%22>"); >> if(m[i].indexOf("www")==0){ item.text = item.text.replace(m[i], >> "http://"+m[i]); >> } } }; if(item.text.search(/@\w+/) > -1) { item.text = >> item.text.replace(/(^|\s)@(\w+)/g, "$...@$2 <http://twitter.com/$2>"); } >> if(item.text.search(/(^|\s)#(\w+)/g) > -1) { item.text = >> item.text.replace(/(^|\s)#(\w+)/g, >> "$1#$2<http://search.twitter.com/search?q=%23$2>"); >> } } if(showProfanity=="false"){ item.text = >> >> -- >> Scott R. Williams >> >> Fisher School District >> 801 S . 5th St. >> Fisher, Il 61843 >> >> >> >> >> >> >> >> | Subscription info at http://www.tech-geeks.org | >> > > > > -- > Eric Barringer > Technology Coordinator > Blue Ridge CUSD #18 > > > > | Subscription info at http://www.tech-geeks.org | >
| Subscription info at http://www.tech-geeks.org |
