From dbab516ae3ae8222ee974e4cc3d60afac8256f91 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 24 Aug 2015 21:59:45 +0100 Subject: [PATCH] Stop message event fireing as much --- src/injections/facebook.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/injections/facebook.js b/src/injections/facebook.js index d7370b3..bebd4d3 100644 --- a/src/injections/facebook.js +++ b/src/injections/facebook.js @@ -1,17 +1,6 @@ - - function change_chat_tabs() { console.log("Event"); - inject_image('._d97'); - jq('._d97').each(function(){ - for (var i = 0; i < image_decoder.length; i++) { - console.log('Checking for ' + image_decoder[i][0]) - jq(this).html(jq(this).html().replace( - image_decoder[i][0], - "" - )); - } - }); + inject_image('._d97', 'emoticon'); } @@ -34,10 +23,4 @@ jq('._55ln').on('click', function() { //Facebook sidebar person is clicked change_chat_tabs(); }) - -jq('._552m').on('input paste', function() { // Text change in textbox. Mainly used to cover all bases - change_chat_tabs(); -}); - - change_chat_tabs(); \ No newline at end of file