1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-30 01:40:55 +00:00

3.5.471. Fixes for the directory. Closes #138. Closes #134. Closes #130. Closes #136. Older: Changes to ITAD popup. Top nav color. Better tool-tips for social bar

This commit is contained in:
SirStendec 2017-04-21 20:02:27 -04:00
parent 996ab7031e
commit e2803a7e1d
23 changed files with 451 additions and 126 deletions

View file

@ -11,6 +11,18 @@
// Settings
// ---------------------
FFZ.settings_info.friend_notifications = {
type: "boolean",
value: false,
category: "Chat Filtering",
no_bttv: 6,
name: "Friend Watching Notifications",
help: "Display notifications when you receive a message that a friend has started watching the same channel."
}
FFZ.settings_info.alias_italics = {
type: "boolean",
value: true,
@ -232,6 +244,45 @@ FFZ.settings_info.banned_words = {
};
FFZ.settings_info.key_users = {
type: "button",
value: [],
category: "Chat Filtering",
name: "Highlight Users",
help: "Set a list of users that will have all their messages highlighted in chat.",
method: function(e, from_basic) {
var f = this,
old_val = this.settings.key_users.join("\n"),
input = utils.createElement('textarea');
input.style.marginBottom = "20px";
utils.prompt(
"Highlight Users",
"Please enter a list of usernames of users that you would like to be highlighted in chat.</p><p>Case insensitive. One name per line.",
old_val,
function(new_val) {
if ( new_val === null || new_val === undefined )
return;
// Split them up.
var vals = new_val.toLowerCase().trim().split(/\s*\n\s*/g),
i = vals.length;
while(i--)
if ( vals[i].length === 0 )
vals.splice(i,1);
f.settings.set("key_users", vals);
},
600, input);
}
};
FFZ.settings_info.keywords = {
type: "button",
value: [],