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.
Ah, my bad; jar files are also just zip files. Just rename it to . Zip and use an unzip app.
– Yuttadhammo May 8 '11 at 4:27.
XPI is simply put a ZIP file, so you can just extract its contents and read the files...
Just learned there is also xpi-unpack and corresponding xpi-pack in Ubuntu (via sudo apt-get install mozilla-devscripts); seems to take unpacking of both . Xpi and included . Jar files into account.. Cheers!
Edit: note however, you may have permission problems with xpi-unpack; here's an example command line log I had: user@PC:Desktop$ xpi-unpack colt. Xpi colt-dir Unpacking colt. Xpi Unpacking .
/chrome/colt. Jar Unpacked xpi file. User@PC:Desktop$ ls -la colt-dir/chrome/colt.
Jar\! / total 16 drwxr-xr-x 4 user user 4096 2011-07-05 09:52 . Drwxr-xr-x 3 user user 4096 2011-07-05 09:52 .. d--------- 2 user user 4096 2010-09-12 05:15 content d--------- 25 user user 4096 2011-01-08 17:08 locale user@PC:Desktop$ stat -c '%n %a' colt-dir/chrome/colt.
Jar\! / colt-dir/chrome/colt. Jar!
/ 755 user@PC:Desktop$ stat -c '%n %a' colt-dir/chrome/colt. Jar\! /content/ colt-dir/chrome/colt.
Jar! /content/ 0 user@PC:Desktop$ sudo chmod -R 755 colt-dir/chrome/colt. Jar\!
/ user@PC:Desktop$ ls -la colt-dir/chrome/colt. Jar\! / total 16 drwxr-xr-x 4 user user 4096 2011-07-05 09:52 .
Drwxr-xr-x 3 user user 4096 2011-07-05 09:52 .. drwxr-xr-x 2 user user 4096 2010-09-12 05:15 content drwxr-xr-x 25 user user 4096 2011-01-08 17:08 locale EDIT2: Actually, turns out other files may be lacking permissions too: user@PC:Desktop$ ls -la colt-dir/ total 28 drwxr-xr-x 4 user user 4096 2011-07-05 09:52 . Drwxr-xr-x 5 user user 4096 2011-07-05 09:523 .. drwxr-xr-x 3 user user 4096 2011-07-05 09:523 chrome ---------- 1 user user 1337 2011-07-05 09:523 chrome. Manifest drwxr-xr-x 3 user user 4096 2011-07-05 09:52 defaults ---------- 1 user user 1969 2011-07-05 09:523 install.
Rdf ---------- 1 user user 1275 2010-09-12 05:04 LICENSE. Txt user@PC:Desktop$ stat -c '%n %a' colt-dir/install. Rdf colt-dir/install.
Rdf 0 ... so best to chmod everything: sudo chmod -R 755 colt-dir/ before trying to make changes and pack (as in xpi-pack colt-dir colt-2. Xpi).
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.