diff --git a/js/main.js b/js/main.js index 1c021eaa..9df22184 100644 --- a/js/main.js +++ b/js/main.js @@ -367,7 +367,7 @@ EmoteModule.prototype.getNodes = function(node) { var bemotes = []; var spoilered = []; -//TODO Functional titles +//TODO Edited emotes EmoteModule.prototype.injectEmote = function(node) { if(typeof emotesTwitch === 'undefined') return; @@ -406,13 +406,13 @@ EmoteModule.prototype.injectEmote = function(node) { return; } - - if($.inArray(word, bemotes) != -1) return; - + if(word.length < 4) { return; } + if($.inArray(word, bemotes) != -1) return; + if (emotesTwitch.emotes.hasOwnProperty(word)) { var len = Math.round(word.length / 4); parentInnerHTML = parentInnerHTML.replace(word, '' + word.substr(0, len) + ' );