Hacking firefox extension
מתוך R63
תוכן עניינים |
general
http://perishablepress.com/hacking-firefox-extensions/ כללי רק ארוז
https://developer.mozilla.org/en-US/docs/Setting_up_extension_development_environment
https://developer.mozilla.org/en-US/docs/Building_an_Extension
hello world example
http://robertnyman.com/2009/01/24/how-to-develop-a-firefox-extension/
steps
- change some parameters
- install hello world
- using directory instead of xpi
simple debug technic
window.alert("1234");
write to error console as info
Application.console.log("Hello from my Firefox Extension!, next is message");
let message = stringBundle.getString("xulschoolhello.greeting.label");
window.alert(message);
Application.console.log(message);
What XPI
The XPI file type is primarily associated with 'Mozilla/Firefox Browser' by Mozilla. This is basically a ZIP file that, when opened by the browser utility, installs a browser extension.