-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathREADME
More file actions
61 lines (50 loc) · 925 Bytes
/
README
File metadata and controls
61 lines (50 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
== 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']
});
});
```