Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Reply Highlighting

To better support conversations in high-activity rooms, this plugin highlights any message that contains "@yourusername" by default.

Usage

<script type="text/javascript" src="candyshop/replies/candy.js"></script>
<link rel="stylesheet" type="text/css" href="candyshop/replies/candy.css" />
CandyShop.Replies.init();
boolean - default true - require @ if true
prefix - strip a prefix while searching
suffix - strip a suffix while searching

Prefix & suffix assume generated user names for an anonymous user. For example, say your generated nick is user533 , and they change their nickname to jimbob. With the options:

CandyShop.Replies.init(false,'user','');

This would highlight lines with user533, 533, and jimbob in them.