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
No EOL
445 B
JavaScript

var self = require('sdk/self');
var pageMod = require("sdk/page-mod");
var sites = require("data/decoder.json").sites;
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'],
});
}