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

  1. change some parameters
http://perishablepress.com/hacking-firefox-extensions/
  1. install hello world
https://developer.mozilla.org/en-US/docs/XUL/School_tutorial/The_Essentials_of_an_Extension?redirectlocale=en-US&redirectslug=XUL_School%2FThe_Essentials_of_an_Extension
  1. 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.


כלים אישיים