From 55c83c241d34a3ce3e7701c8bcc7e85433a544a9 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 21 Aug 2015 08:52:26 +0100 Subject: [PATCH] Tried to fix problem with content script URLs --- firefox/index.js | 5 ++++- src/injections/facebook.js | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) 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