Can't edit omni.ja

General project discussion.
Use this as a last resort if your topic does not fit in any of the other boards but it still on-topic.
Forum rules
This General Discussion board is meant for topics that are still relevant to Pale Moon, web browsers, browser tech, UXP applications, and related, but don't have a more fitting board available.

Please stick to the relevance of this forum here, which focuses on everything around the Pale Moon project and its user community. "Random" subjects don't belong here, and should be posted in the Off-Topic board.
User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38408
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Can't edit omni.ja

Post by Moonchild » 2019-05-07, 11:53

A dev essentials account is free. I guess I flagged my account as a dev account in the past by signing up for it. Doesn't make much difference, just gives you access to developer tools.

https://visualstudio.microsoft.com/dev-essentials/
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: Can't edit omni.ja

Post by New Tobin Paradigm » 2019-05-07, 12:07

He can still do what he wants to do via an extension.. So I dunno why he is trying to grab visual studio to recomple with.

You realize he is gonna ask every single question ever and not understand what you tell him right?

It will go on for literal days.

User avatar
Isengrim
Board Warrior
Board Warrior
Posts: 1324
Joined: 2015-09-08, 22:54
Location: 127.0.0.1

Re: Can't edit omni.ja

Post by Isengrim » 2019-05-07, 14:33

I'm all for trying to build it yourself, but yeah, it's a lot of work for what I think they want to do. *Shrug*
a.k.a. Ascrod
Linux Mint 19.3 Cinnamon (64-bit), Debian Bullseye (64-bit), Windows 7 (64-bit)
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story

John connor

Re: Can't edit omni.ja

Post by John connor » 2019-05-08, 06:23

I looked over the Wiki page on compiling PM and it looks straight forward and fairly easy to do. I'm not particularly dumb when it comes to computers or even my own websites. I can follow instructions quite well. It's just that double account crap that has be tripped up. In typical M$ fashion not only do I need a M$ account, but another damn account just to download a FREE, let me repeat that and bold the most pertinent. FREE download of Visual Studio Community Edition.

The only thing that's gonna be a PITA is that from what I read at the Wiki page here is that it sounds like it takes forever to compile. Yes, my gaming desktop more than meets the requirements.

Now I realize this is all dumb beyond dumb just to change the about:palemoon and the logo that displays in blank tabs. But as I said before, I did these simple edits via editing the omni.ja file and successfully repacked the omni.ja file and my browser worked without any issues once so ever. I even made a backup of the original omni.ja file just in case. Never the less, I have always wanted to learn how to compile this thing called Pale Moon and perhaps learn something in the process. I never realized how complex a browser really was.

Question: what is the code at Github that is used for the source prior to compiling? Is it all mostly HTML, CSS and JS or what? Perhaps one day I'll learn those. As of right now I'm code stupid, but I can understand a few things. After all, I edited the omni.ja file and learned how to do it on my own. :lol:

Edit- And just an FYI. I already found the necessary code in the Github source to make my edits and I have edited those files and placed in my new about.png image ready for compiling. I used a great free, but also paid offering called Fileseek to find the right files.

PS. Try reading my profile biography. :lol:
Last edited by Moonchild on 2019-05-08, 11:12, edited 1 time in total.
Reason: Blatant plug for commercial service removed. Don't harp on Microsoft then promote something else paid.

User avatar
Isengrim
Board Warrior
Board Warrior
Posts: 1324
Joined: 2015-09-08, 22:54
Location: 127.0.0.1

Re: Can't edit omni.ja

Post by Isengrim » 2019-05-08, 09:29

Most of the "chrome" (front-end) is XUL, JS, and CSS with a smattering of HTML. A lot of the application code beneath that is C++. There's also quite a bit of scripting for the build system including Python and Bash. The Windows installer uses NSIS. It's a real hodgepodge of technology.
a.k.a. Ascrod
Linux Mint 19.3 Cinnamon (64-bit), Debian Bullseye (64-bit), Windows 7 (64-bit)
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story

New Tobin Paradigm

Re: Can't edit omni.ja

Post by New Tobin Paradigm » 2019-05-08, 09:41

Somebody better pick up that phone BECAUSE I FUCKING CALLED IT.

Look all you need to do is put your little logo in an xpi file with an install.rdf and a chrome.manifest with a chrome override directive for the actual chrome url that about:logo resolves to and it will work forever on any normal UXP application not just Pale Moon.

Give me your image and I will do it for fuck sakes.

Btw, we.. don't offer support for building the software nor custom builds. Use an extension as I described or you are cut off and on your own.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38408
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Can't edit omni.ja

Post by Moonchild » 2019-05-08, 11:11

New Tobin Paradigm wrote:
2019-05-08, 09:41
Use an extension as I described or you are cut off and on your own.
Now, now, we're not against helping people who want to try and build from source now, are we? They did say it was something to do "as a learning thing".

I'd be happy to help with that as well but if you already have a problem with just signing up for a dev account to get a PROPRIETARY and commercial development suite at no cost, then I think your priorities are wrong. Remember Visual Studio is a huge development environment and is not cheap -- Microsoft is well in their rights to ask that you specifically indicate that you are interested in developing software (it will all be under one account and once login, as I already explained it just flags your account as dev, and might send you a dev newsletter by default that you can unsubscribe from) before allowing you to download a copy of what they have released for free to the community (this is not "free software"!). So don't be a putz and click the link, say yes, and proceed on your merry way to download.
Then do your best to follow the clear instructions -- yes it will take a while to build; it's over 20 million lines of source code. Expect about an hour for a full build from scratch. Builds after that will be much shorter if you've edited files unless the build system triggers a rebuild.

P.S.: I won't be able to guide anyone through the process -- it's supposed to be a learning experience so try to figure out as much as you can yourself.
I do agree with Tobin that aside from the learning thing, you should be using an extension for what you want to change. Rebuilding from source just for that is dumb and you will forfeit any support on your use of the private build in the process because we cannot be sure if it was built correctly.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

rickmv

Re: Can't edit omni.ja

Post by rickmv » 2019-05-08, 18:36

download-visual-studio-community-edition-2015 ISO direct from M$

https://stackoverflow.com/questions/442 ... 5-not-2017

John connor

Re: Can't edit omni.ja

Post by John connor » 2019-05-10, 04:21

Moonchild wrote:
2019-05-08, 11:11
and you will forfeit any support on your use of the private build in the process because we cannot be sure if it was built correctly.
Fair enough.

rickmv wrote:
2019-05-08, 18:36
download-visual-studio-community-edition-2015 ISO direct from M$

https://stackoverflow.com/questions/442 ... 5-not-2017
Thanks.

Goodydino
Keeps coming back
Keeps coming back
Posts: 928
Joined: 2017-10-10, 21:20

Re: Can't edit omni.ja

Post by Goodydino » 2019-05-27, 18:36

To change an image in part of the interface, you could use userChrome.css and a new image in the content directory. Why not do it that way?

New Tobin Paradigm

Re: Can't edit omni.ja

Post by New Tobin Paradigm » 2019-05-28, 07:31

He could also build a simple extension with an override chrome directive. He is just being an idiot. Ignore it.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38408
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Can't edit omni.ja

Post by Moonchild » 2019-05-28, 10:33

Why are we still discussing this, again?
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite