Today at 8:53pm, [EMAIL PROTECTED] said:

>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.
...
>Anyone know how I could go about doing this?

I don't know a way to accomplish it with CSS, but one thing you could do
is set up a simple web proxy that would perform the substitutions for you.
The easy way would be to hack up a perl script, or the hard(er) way would
be to modify squid to do it. Who knows, you might be able to get such a
patch committed to squid for everyone to use. I did some quick googling
and turned up these links:

http://www.xmission.com/help/web/proxy.html

http://dansguardian.org/
http://linux.tucows.com/preview/177233.html

http://www.squidguard.org/

http://www.ingrid.org/~harada/filtering/

It seems like most of the existing solutions block or label the content
with a rating, instead of doing substitution like you're looking for.
But if they've already got the mechanism for this, they'd just need a
little bit of code to alter the content based on a replacement list you
supply.

Mac

--
Mac Newbold             MNE - Mac Newbold Enterprises, LLC
[EMAIL PROTECTED]       http://www.macnewbold.com/

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

Reply via email to