Tried to fix problem with content script URLs
This commit is contained in:
parent
f4fb7baaa7
commit
55c83c241d
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
});
|
||||
}
|
|
@ -19,3 +19,4 @@ $('._d97').on('change load', function(event){
|
|||
change_chat_tabs();
|
||||
});
|
||||
alert("Injected");
|
||||
console.log("Injected");
|
Reference in a new issue