Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to decode a Firefox addon from XPI to XUL?

Is it possible to decode a firefox addon from the XPI binding format to the native language XUL?

I am just trying to learn how to make a addon. So, I think if I can decode a Firefox addon then I can learn addon architecture!

like image 529
user727412 Avatar asked Apr 28 '11 16:04

user727412


2 Answers

XPI is simply put a ZIP file, so you can just extract its contents and read the files...

like image 131
Paweł Dyda Avatar answered Oct 11 '22 16:10

Paweł Dyda


Most of the code that you will want to look at is in the extension's chrome directory, usually in a jar file. All you need is a file extractor that can extract zip files. Once you extract the xpi (it's just a zip file with an xpi extension), open the chrome subfolder and see what's there. If it's a jar file, extract it's contents (.jar files are also just zip files with a different extension). From there, there's probably a content folder, which should have most of the xul, css, js, etc.

like image 44
yuttadhammo Avatar answered Oct 11 '22 15:10

yuttadhammo