mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-16 01:56:55 +00:00
3.5.271 to 3.5.284. As usual, I only remember to commit when someone mentions it.
This commit is contained in:
parent
9592dc1c2c
commit
8db999a8a8
29 changed files with 1388 additions and 317 deletions
|
@ -239,6 +239,43 @@ FFZ.prototype.setup_bttv = function(delay) {
|
|||
}
|
||||
};
|
||||
|
||||
// Tab Completion
|
||||
var original_emotes = BC.emotes;
|
||||
|
||||
BC.emotes = function() {
|
||||
var output = original_emotes(),
|
||||
user = f.get_user(),
|
||||
room_id = BetterTTV.getChannel(),
|
||||
|
||||
ffz_sets = f.getEmotes(user && user.login, room_id);
|
||||
|
||||
for(var i=0; i < ffz_sets.length; i++) {
|
||||
var emote_set = f.emote_sets[ffz_sets[i]];
|
||||
if ( ! emote_set )
|
||||
continue;
|
||||
|
||||
var set_name = (emote_set.source || "FFZ") + " " + (emote_set.title || "Global") + " Emotes",
|
||||
set_icon = emote_set.icon || (emote_set.hasOwnProperty('source_ext') && f._apis[emote_set.source_ext] && f._apis[emote_set.source_ext].icon) || '//cdn.frankerfacez.com/script/devicon.png';
|
||||
|
||||
for(var emote_id in emote_set.emoticons) {
|
||||
var emote = emote_set.emoticons[emote_id];
|
||||
if ( ! emote.hidden && emote.name ) {
|
||||
output.push({
|
||||
text: emote.name,
|
||||
channel: set_name,
|
||||
badge: set_icon,
|
||||
url: emote.urls[1]
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
f.log("BTTV Emotes", output);
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
|
||||
// Emoji!
|
||||
var parse_emoji = function(token) {
|
||||
var setting = f.settings.parse_emoji,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue