1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
hipchat-emoticons-for-all/firefox/index.js

13 lines
424 B
JavaScript
Raw Normal View History

2015-08-19 15:20:16 +01:00
var self = require('sdk/self');
var pageMod = require("sdk/page-mod");
2015-08-20 22:38:11 +01:00
var sites = require("data/site-decoder.json").sites;
2015-08-20 10:35:30 +01:00
2015-08-20 11:17:37 +01:00
for (var i = 0; i < sites.length; i++) {
2015-08-20 22:38:11 +01:00
pattern = Object.keys(sites[i])[0];
script = sites[i][pattern];
2015-08-21 09:09:22 +01:00
content_scripts = ["./lib/jquery.js", "./image-lookup.js", "./injections/" + script];
2015-08-20 11:17:37 +01:00
pageMod.PageMod({
2015-08-20 22:38:11 +01:00
include: pattern,
contentScriptFile: content_scripts
2015-08-20 11:17:37 +01:00
});
}