вот весь main.js:
var buttons = require('sdk/ui/button/action');
var tabs = require("sdk/tabs");
var data = require("sdk/self").data;
var pageMod = require("sdk/page-mod");
var text_entry = require("sdk/panel").Panel({
include: "*",
contentURL: data.url("popup.html"),
contentScriptFile: [data.url("jquery-1.12.0-min.js") , data.url("popup.js")],
contentScriptOptions: {
showOptions: true,
numbers: [1, 2]
}
});
var button = buttons.ActionButton({
id: "mozilla-link",
label: "Visit Mozilla",
icon: {
"16": "./icon-16.png",
"32": "./icon-32.png",
"64": "./icon-64.png"
},
onClick: handleClick
});
function handleClick(state) {
text_entry.show();
}
exports.main = function() {
pageMod.PageMod({
include: "*",
contentScriptWhen: 'end', // end start
contentScriptFile: [data.url("jquery-1.12.0-min.js") , data.url("my-script.js")]
});
};