Page 2 of 2

need new browser

Posted: Wed Jul 07, 2004 9:08 pm
by Chris Vogel
Red Squirrel wrote: Just wondering what program do I need to compile it in the right format and all?  Since if I go in the mozilla folder it's not really anything I can manually edit, so I assume it has to be compiled.  It's not something I have time to do any time soon but I'll look into it at least.
You have to extract the modern.jar or classic.jar (whichever you choose to base your theme on) before you can edit anything. I think a lot of software can extract JARS. If not, you may be able to get away with changing the file extension since JARs are like ZIPs.

You don’t want to have to extract and then repackage everytime you want to test a slight change in your theme. To make your Mozilla installation easier to hack, I recommend extracting all the JARs in the CHROME directory and then editing the installed-chrome.txt file.

Back up your CHROME directory first, of course.

Then, just extract every JAR in the CHROME directory. modern.jar should now just be a folder named modern. Same will the other JARs.

You’ll now have to edit the installed-chrome.txt.

You’ll see lines like this:
content,install,url,jar:resource:/chrome/comm.jar!/content/necko/

Edit them to something like this:
content,install,url,resource:/chrome/comm/content/necko/

All I did was take out the "jar:" and the ".jar!". You can do this really quick with a text editor. Just replace those two with nothing. Of course, only modify the ones that correspond the the JARs you extracted. If you extracted them all, that isn’t a problem.

If you get a big nasty error on Mozilla start-up, you’ve done something wrong. Either you have extracted the JARs somewhere other than you should or you have edited the installed-chrome.txt wrongly. Just replace the CHROME folder with your back-up to make everything okay again.


___________________

You could probably do the same thing with JARs in your profile’s CHROME directory as well. However, the file to edit there is chrome.rdf (replacing the jar: and .jar! with nothing like in installed-chrome.txt). I have never done it, but it’s worth trying as long as you back up that folder first. This is what you will want to do in case you want to edit a theme other than Classic or Modern.

Archived topic from Iceteks, old topic ID:2472, old post ID:20832

need new browser

Posted: Wed Jul 07, 2004 9:20 pm
by Triple6_wild
just right click on jar file and go properties rename zip n set it so winzip (or your choice) can open the file .... worked for me using win XP

Archived topic from Iceteks, old topic ID:2472, old post ID:20833

need new browser

Posted: Wed Jul 07, 2004 9:37 pm
by Red Squirrel
Power archiver can open jars so I'm all set. Not sure when I'll actually do this and if I will since it's lot of work but at least I know how and it seems simple enough. Knowing me I WILL make it from scratch. :P

Archived topic from Iceteks, old topic ID:2472, old post ID:20834