From dbbe98b8f02f010ec6c6cb27ef36d6dec16bb6f9 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Wed, 14 Oct 2015 09:36:39 +0300 Subject: [PATCH] dev --- js/devmain.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/devmain.js b/js/devmain.js index fa29154..490f3f5 100644 --- a/js/devmain.js +++ b/js/devmain.js @@ -199,7 +199,7 @@ EmoteModule.prototype.injectEmote = function(node) { if(!words) return; words.some(function(word) { - console.log(word); + if (emotesTwitch.hasOwnProperty(word)) { parentInnerHTML = parentInnerHTML.replace(word, "<\/img>"); } else if(typeof emotesFfz !== 'undefined' && settingsCookie["bda-es-1"]) { @@ -213,7 +213,11 @@ EmoteModule.prototype.injectEmote = function(node) { } }); + var oldHeight = parent.parent().height(); parent.innerHTML = parentInnerHTML; + var newHeight = parent.parent().height(); + + console.log("heightdiff: " + newHeight - oldHeight); } EmoteModule.prototype.autoCapitalize = function() {