On Tue, 17 Feb 2004 [EMAIL PROTECTED] wrote:

> I use the internet quite a lot to fix computer problems, learn about 
> new technologies, and read Slashdot. Sometimes pages have profanities, 
> as everyone knows. I've been trying to think of a way to edit out 
> swears etc., possibly using Mozilla's UserContent.css file. Basicly it 
> would just replace "Dern" with "Darn" or whatever.

Well, I wrote this code a while back.  Orangatango has/had a service that
would cut out vulgarity, plus a whole lot more, and someone suggested that
certain users might actually want *more* vulgarity in the pages they surfed.  
So perhaps this could be adapted to your needs:

                                                -J


#!/usr/bin/perl
@cusswords = qw(darn blasted frickin' hud crap);
$_ = join('', <>);
for(0..rand(@w = /(\w*\W*)/sg)) { 
        splice(@w, rand(@w), 0, $cusswords[rand(@cusswords)]." "); }
print @w;



____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to