Explain hacked?
If I...
unzip omni.ja
... make changes
zip omni.ja -r *
It works.
"Hacked".
update.locale, en-US -> en-UK
aboutsupport.dtd -> "<!ENTITY aboutSupport.crashes.title "Crash Reports HACKED BY THERUBE">"
aboutAbout.dtd -> "And some are omitted because they require query strings. AND WHERE THE IS ABOUT:>"
Is that enough of a hack?
zip omni.ja -r *
It works.
Oh, & regardless of what mdn might say, they are not using any compression in omni.ja, so -0, (in FF 62).
Packaging the omni.ja
- therube
- Posts: 21714
- Joined: March 10th, 2004, 9:59 pm
- Location: Maryland USA
Re: Packaging the omni.ja
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
-
- Posts: 4480
- Joined: March 19th, 2005, 10:51 am
Re: Packaging the omni.ja
the omni.ja (former known as omni.jar) is special packed archive with mozillas own lzma build of 7zip. it has several modifications how content is packed and it has data after end. if was announced that unpacking and packing would result in bad performance. i wonder why people want to make people firefox slow for NO reason. at least there is no reason to work on this file. and if some know that there exist two of them... could not more worse...
-
- Posts: 6437
- Joined: February 3rd, 2009, 6:29 pm
Re: Packaging the omni.ja
Command Prompt:therube wrote:Explain hacked?
Code: Select all
cd /d C:\FirefoxPortable\App\Firefox
copy omni.ja omni.ja.backup
optimizejars.py --deoptimize "%TEMP%" "%CD%" "%TEMP%" > nul
copy /y "%TEMP%"\omni.ja
del "%TEMP%"\omni.ja "%TEMP%"\omni.ja.log
unzip -l omni.ja | find "aboutSupport.dtd"
unzip omni.ja chrome/en-US/locale/en-US/global/aboutSupport.dtd
gvim chrome/en-US/locale/en-US/global/aboutSupport.dtd
zip omni.ja chrome/en-US/locale/en-US/global/aboutSupport.dtd
del /s /q chrome > nul
rd /s /q chrome
cd /d C:\FirefoxPortable
FirefoxPortable.exe -purgecaches
Last edited by morat on September 26th, 2018, 11:05 am, edited 1 time in total.
- therube
- Posts: 21714
- Joined: March 10th, 2004, 9:59 pm
- Location: Maryland USA
Re: Packaging the omni.ja
Yes, I suppose my unzip, entirely, then zip, entirely, essentially negates the need for optimizejars.py.
And with the update (SeaMonkey) opens & runs as expected.
FF52 also works.
@B, the point is not whether it makes things slower, the point is whether the process works or not - well, at least to me . Once you know whether the process works at all, then you can deal with all the details, & fight about whether you should do such things at all.
(I'm actually surprised that Mozilla allows this, that they don't have a self-check [eh, I guess in the end it is kind of futile]. Attempt to change an extension & it fails its hash check & won't work. Change omni.ja, & all is fine & dandy. [And if that is the case, why all the hoopla given extensions.])
Actually, it does not.Otherwise, attempting to update a file into the original omni.ja would fail.
Code: Select all
zip -u -v orig_omni.ja 2>&1 > log.txt
FF52 also works.
Code: Select all
unzip omni.ja update.locale
gvim update.locate ... s/en-US/en-XXX/ ... :wq
zip -u omni.ja
@B, the point is not whether it makes things slower, the point is whether the process works or not - well, at least to me . Once you know whether the process works at all, then you can deal with all the details, & fight about whether you should do such things at all.
(I'm actually surprised that Mozilla allows this, that they don't have a self-check [eh, I guess in the end it is kind of futile]. Attempt to change an extension & it fails its hash check & won't work. Change omni.ja, & all is fine & dandy. [And if that is the case, why all the hoopla given extensions.])
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
- therube
- Posts: 21714
- Joined: March 10th, 2004, 9:59 pm
- Location: Maryland USA
Re: Packaging the omni.ja
Kind of.FF52 also works.
While it does "work"; opens, loads pages... it also HUNG in memory on Quit - which isn't optimal .
So yes, you can "hack" something, & it might work, for the most part...
But not consistently.it also HUNG in memory on Quit
Sometimes it did close properly.
IOW, proceed at your own risk, of course.
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
-
- Posts: 4480
- Joined: March 19th, 2005, 10:51 am
Re: Packaging the omni.ja
OFC Firefox recognise altered files of it's installation. And it has consequences, but not always in regular usage (except less performance). It all has been documented in the dev moz pages.
-
- Posts: 87
- Joined: June 5th, 2007, 12:40 pm
Re: Packaging the omni.ja
I did it recently, using 7-zip, zip compression type and level of compression "store". Worked perfectly.