1
Fork 0

Tried to fix problem with content script URLs

This commit is contained in:
Jake Howard 2015-08-21 08:52:26 +01:00
parent f4fb7baaa7
commit 55c83c241d
2 changed files with 6 additions and 2 deletions

View file

@ -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
});
}

View file

@ -19,3 +19,4 @@ $('._d97').on('change load', function(event){
change_chat_tabs();
});
alert("Injected");
console.log("Injected");