diff --git a/firefox/index.js b/firefox/index.js index 5ca732f..475f779 100644 --- a/firefox/index.js +++ b/firefox/index.js @@ -5,10 +5,13 @@ var sites = require("data/site-decoder.json").sites; for (var i = 0; i < sites.length; i++) { pattern = Object.keys(sites[i])[0]; script = sites[i][pattern]; + content_scripts = ["lib/jquery.js", "image_lookup.js", "injections/" + script]; console.log('script ' + script); console.log('pattern ' + pattern); + console.log('Content Scripts: ' + content_scripts); + pageMod.PageMod({ include: pattern, - contentScriptFile: ["lib/jquery.js", "./image_lookup.js", "injections/" + script] + contentScriptFile: content_scripts }); } \ No newline at end of file diff --git a/src/injections/facebook.js b/src/injections/facebook.js index 64de20f..fabf12b 100644 --- a/src/injections/facebook.js +++ b/src/injections/facebook.js @@ -18,4 +18,5 @@ $('.fbNubFlyout').on( $('._d97').on('change load', function(event){ change_chat_tabs(); }); -alert("Injected"); \ No newline at end of file +alert("Injected"); +console.log("Injected"); \ No newline at end of file