MCPcopy Index your code
hub / github.com/ChaseFlorell/jQuery.ProfanityFilter

github.com/ChaseFlorell/jQuery.ProfanityFilter @v1.01.01

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.01.01 ↗ · + Follow
12 symbols 24 edges 3 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

jQuery.ProfanityFilter Plug-in

http://profanityfilter.chaseflorell.com

The jQuery.ProfanityFilter has the ability to filter out profane words on the client side.

This was built in order to allow users to "Opt-in" to profanity filtering, and offload all of the work to the client, saving the headache on the server. The jQuery.ProfanityFilter also attempts to use Local Storage on the client machine in order to reduce lookups at the externalSwears URL.

Obvious warning: The swearWord lists as well as code examples contain material that many will find offensive. (But that's the point!)

Usage:


Option 1:

// Filter the word "shit" every time it shows up inside the element "SomeElement"
$('#SomeElement').ProfanityFilter({
    customSwears: ['shit']
});`

Option 2:

// Filter an external array of words on the entire document  
$(document).ProfanityFilter({
    externalSwears: '/Path/To/Json/Swears/'
});

Option 3:

// Change the replacement character from an astrisk (*) to a pound sign (#)
$(document).ProfanityFilter({
    externalSwears: '/Path/To/Json/Swears/',
    replaceWith: '#'
});

Option 4:

// Change the replacement from astrisks (*) to random words
$(document).ProfanityFilter({
    externalSwears: '/Path/To/Json/Swears/',
    replaceWith: ['fiddle', 'fun', 'stupendous']
});

Option 5:

// Combine an externl Swear list with a custom list (don't worry, we'll remove duplicates)
$(document).ProfanityFilter({
    customSwears: ['monkeyass'],
    externalSwears: '/Path/To/Json/Swears/'
});

Bug Tracker:


Find a bug? Please create an issue here on GitHub!
https://github.com/ChaseFlorell/jQuery.ProfanityFilter/issues

Dependencies


This plugin requires:

Author:


Chase Florell

  • http://github.com/ChaseFlorell
  • http://twitter.com/ChaseFlorell

Copyright and License


You can use this however the heck you want. If you like it, say thanks.

Core symbols most depended-on inside this repo

getChildNodes
called by 2
jquery.profanityfilter.js
readJsonFromController
called by 2
jquery.profanityfilter.js
getChildNodes
called by 2
demo/jquery.profanityfilter.js
readJsonFromController
called by 2
demo/jquery.profanityfilter.js
allTextNodes
called by 1
jquery.profanityfilter.js
generateRandomNumber
called by 1
jquery.profanityfilter.js
allTextNodes
called by 1
demo/jquery.profanityfilter.js
generateRandomNumber
called by 1
demo/jquery.profanityfilter.js

Shape

Function 12

Languages

TypeScript100%

Modules by API surface

jquery.profanityfilter.min.js4 symbols
jquery.profanityfilter.js4 symbols
demo/jquery.profanityfilter.js4 symbols

For agents

$ claude mcp add jQuery.ProfanityFilter \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact