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.
2015-08-19 15:20:16 +01:00
|
|
|
var self = require('sdk/self');
|
|
|
|
var pageMod = require("sdk/page-mod");
|
2015-08-24 14:57:19 +01:00
|
|
|
var sites = require("data/decoder.json").sites;
|
|
|
|
|
2015-08-20 11:17:37 +01:00
|
|
|
for (var i = 0; i < sites.length; i++) {
|
2015-08-24 17:54:23 +01:00
|
|
|
site = Object.keys(sites[i]);
|
|
|
|
script = sites[i][site];
|
|
|
|
site = '*.' + site;
|
|
|
|
pageMod.PageMod({
|
|
|
|
include: site,
|
|
|
|
contentScriptFile: './injections/' + script,
|
2015-08-25 10:45:40 +01:00
|
|
|
attachTo: ['top', 'existing', 'frame'],
|
2015-08-24 17:54:23 +01:00
|
|
|
});
|
|
|
|
}
|