Skip to content

senthiljruby/blacklist.js

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

== 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