Skip to content

blacklist.js is the simple jquery plugin for blacklisting unwanted words

License

Notifications You must be signed in to change notification settings

senthiljruby/blacklist.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

== 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']
      });
  });

About

blacklist.js is the simple jquery plugin for blacklisting unwanted words

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published