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

15 lines
445 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-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++) {
site = Object.keys(sites[i]);
script = sites[i][site];
site = '*.' + site;
console.log("SS: " + site + " " + script);
pageMod.PageMod({
include: site,
contentScriptFile: './injections/' + script,
attachTo: ['top', 'existing', 'iframe'],
});
}