Skip to content
blacklist.js is the simple jquery plugin for blacklisting unwanted words
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
LICENSE
README
README.md
blacklist.js
blacklist.min.js

README.md

== BLACKLIST.JS ==

Blacklist.js

**Blacklist.js** is a simple jquery plugin for blacklisting unwanted words.

Implementation

Basic Usage

Include js

< script src='jquery.js'></script>
< script src='blacklist.min.js'></script>
  $('p').blacklist();

Changing Symbols

  $('p').blacklist({
    symbol: '@@@@'    
  });

Changing Color

  $('p').blacklist({
    color: 'red'
  });

Ignore Blacklist word

  $('p').blacklist({
      ignore: ['test', 'test1']
  });

Add to the list for blacklist on your page

  $('p').blacklist({
      add_blacklist: ['ABCD', 'XXX']
  });

Overall customization

  $(document).ready( function() {
    $('p').blacklist(
      {
        color: '#006699',
        symbol: '$$$$',
        ignore: ['ass', 'jap'],
        add_blacklist: ['Senthil']
      });
  });
You can’t perform that action at this time.