Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Profanity Filter

Version 1.0: Filters profanity from websites. Edit the array profanity to control which words are removed from pages and replaced with ***. Ranked number one according to Google.

Details


Filters profanity from website. Significantly rewrote other replacement scripts to noticeably improve performance on large pages.

Added pseudo-threading to gradually replace words on larger pages to alleviate browser unresponsiveness when filtering larger pages.

To modify, simply edit the profanity array to control which words are removed from pages and replaced with ***.

Hey, looks like Google is ranking this as the topmost Profanity Filter as of January 2008. Thanks to all!




May 14, 2008
JRN User

I use this script primarily for blocking YouTube Profanity. It apparently works inconsistently.

I think part of the problem is that the filter only engages after the rest of the page loads. With YouTube, the page is loading until the video has completely downloaded. Lots of time to read many comments and profanity.

I don't know if this is a Greasmonkey issue - whether the script can be made to activate before the page is finished loading, or just what.

Anyone else have this issue?


 
May 7, 2008
Henrik N Admin

...and "cobia" must surely be a Mountweazel :)


 
May 7, 2008
Henrik N Admin

Looking at the word list as inspiration since I've been asked to write a profanity filter.

Some of these blocked words are a weird choice. Are e.g. "vagina" and "smut" words that offend? Is it really a good idea to censor "balls"? :p Seems like it'd overgenerate wildly. And the censoring of "gaysex" seems more offensive than the word.


 
Mar 27, 2008
Greg Ackerson User

Hi guys. I modified the script to handle capitalized and all-caps badwords. So you won't get "YOU'RE A poopie MORON!!!!" anymore. Check it out at: http://supersilly.com/~greg/profanityfilter.use...

I removed a handful of badwords, however (like butt and beaver et al.), so if you use mine you may want to restore the badwords array from the 1.0 version.


 
Mar 21, 2008
samdd2 User

I really like this new toy. I have been using ProconLatte for word censoring and the accuracy hasn't been the greatest. Even when you tell it to filter the f-bomb it will filter the first word it sees in the sentence but not the second. This however seems to be living up to it's deal.

One question though: I can install the script automatically by clicking on the icon at the page or to install it through GreaseMonkey. Drag and dropping is NOT working in "manage user scripts settings". I'm becoming frustrated. Also, when I install the script using the install now click here at the site, I'm not allowed to click on edit in "Manage user scripts." This is when it's even installed.

Any help would be greatly appreciated!


 
Jan 14, 2008
scapedog User

i searched all day yesterday for a script that did this - i don't care if my kid is watching an NHL highlight video on you tube, but i don't want him exposed to the morons posting comments that can't stop from dropping F BOMBS.

Installed flawlessly - nice work!!!


 
Jul 31, 2007
Harrel Phillips User

Why can't I install the Profanity Filter? I keep getting error message: "document is undefined"


 
Jan 13, 2007
jambarama User

Sorry, beaten to it by Pieter (I don't know why I couldn't see his post before).

By the way, EXCELLENT script, really useful and well done.


 
Jan 13, 2007
jambarama User

I can tell you how to tweak it.
-Install it first.
-In FF go to Tools > Greasemonkey > Manage User Scripts
-Select "Profanity Filter"
-Click Edit
*If you've never done this before, you'll have to select a text editor. Notepad works, I really like Notepad++ http://notepad-plus.sourceforge.net/uk/site.htm
-There is a section that starts
"//sorted alpha backwords to catch bad word groupings
var badwords="...
Add whatever words you want to this section in single quotes with commas between ('word1','word2')

That is it! If you don't like the *** this script replaces bad words with, find this section: var ReplacementText = "***"; and replace the *** with whatever you want (like *expletive*).


 
Jan 12, 2007
Pieter De De... User

@Rudy:

Go to Greasemonkey Settings, click on Profanity Filter and finally click Customize. The source file should open.

Then search for:

---
var badwords=
---

There you'll find the list of blocked words. Put every word between 'these things' and seperate them with a comma.

Additionally, you can replace the line

---
var ReplacementText = "***";
---

with anything you like. For example, if you want bleeped words to be replaced with *bleep*, replace the line with this:

---
var ReplacementText = "*bleep*";
---

Don't forget to save the file, or your changes will be lost. Changes are effective immediately after reloading your opened web pages.


 
Sep 21, 2006
Rudy Alyanakian User

Hello. It works well so far, just as advertised! I am trying to tweak it to add a few words but am having trouble. How can I do that? Sorry, but I need a little help.

Thanks for an excellent script.


You could comment on this script if you were logged in.