Dorando keyconfig - Add a new key - Page Style changing Topic is solved
Moderators: FranklinDM, Lootyhoof
- MisterMisanthrope
- Newbie
- Posts: 6
- Joined: 2024-08-01, 04:19
Dorando keyconfig - Add a new key - Page Style changing
I'm looking for a way to quickly change Page Style under View and though I could use Dorando keyconfig but I don't know what Code Source I'm looking for to enter in able to do so.
Re: Dorando keyconfig - Add a new key - Page Style changing
Code: Select all
getMarkupDocumentViewer().authorStyleDisabled ? gPageStyleMenu.switchStyleSheet('') : gPageStyleMenu.disableStyle();
- MisterMisanthrope
- Newbie
- Posts: 6
- Joined: 2024-08-01, 04:19
Re: Dorando keyconfig - Add a new key - Page Style changing
Amazing. Thanks!
I binded it to Ctrl+Alt+PgDn, works perfectly to hot swap back and forth between "No Style" and "Basic Page Style"
Cheers

I binded it to Ctrl+Alt+PgDn, works perfectly to hot swap back and forth between "No Style" and "Basic Page Style"
Cheers
Re: Dorando keyconfig - Add a new key - Page Style changing
Where might this kind of thing be documented? Like an API for UPX... Not-knowing what is possible/available under the hood becomes a barrier when trying to write an Add-on. Or when *using* an Add-on, in the case of Dorando.jars_ wrote: ↑2025-01-17, 09:37Code: Select all
getMarkupDocumentViewer().authorStyleDisabled ? gPageStyleMenu.switchStyleSheet('') : gPageStyleMenu.disableStyle();
Re: Dorando keyconfig - Add a new key - Page Style changing
Thats soo true! SfMBE (G translate ↓)Not-knowing what is possible/available under the hood becomes a barrier when trying to ...
Well, for this Moonchild&CO made a non-standard archive for palemoon.res, so that it could not be unpacked and viewed by any archiver - “all for the convenience of the interested user"

Let me be clear: it is inexperienced users who find it difficult. The first time I contacted a specialist, he unpacked this archive for me. Those. they did shit to people like you and me, but not to “evil hackers”

To detect and compose the code above, you need: CustomButtons(ext) + Attribute Inspector(CB button by Infocatcher) + DOM inspector(ext).
1. Attrib.insp. highlights the menu item and shows called functions(click btn and hover mouse ).
2. CTRL+SHIFT+I or MMC (hotKeys Ai) will open a menu item in the DOM inspector where you can find references...
3. If nothing found in DOM insp, then in CB we write code like this (we took hints of what to look for from Ai + DOMi):
Code: Select all
alert(gPageStyleMenu.toSource());
Profit!11!

SfMBE (G translate ↓)
---
Re: Dorando keyconfig - Add a new key - Page Style changing
You are still upset about this? Talk about holding a grudge!...
Repeating once more since it's been a while: It's not an archive. It may have started out in the Netscape days as a java archive (.jar) format but it isn't. There's a reason Mozilla changed the extension of it aeons ago to avoid confusion about it being a standard archive or not. The issue with unpacking with an archiver is because of its compression scheme, but even without that no longer being "zip-compatible" the resource file isn't an archive. Brotli is simply decompressing faster (improving browser startup) and more compact (reducing file size) to use for compressing a resource file that is primarily source code/text.
If you want to know the browser's source code, check the repo. You can find everything that makes up the browser UI in palemoon/base/content
The fact that you're unhappy about no longer being able to apply dirty hacks by editing the .res (=resource) file as if it was an archive (in turn destroying the optimized layout -- you can be lucky it has ever been able to be read by the browser afterwards! The fact the browser understands a standard zip archive in its place has been a "happy accident" because it needs to be able to read .jar files as well for historical reasons e.g. for old extensions) isn't a reason to twist it as if the only reason for further optimizing the speed and size of it was to "make it inconvenient for advanced users". Advanced users can use git or the web interface to the source via repo.palemoon.org and inspect the browser source there.
"The world will not be destroyed by those who do evil, but by those who watch them without doing anything." - Albert Einstein
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
- RealityRipple
- Keeps coming back
- Posts: 810
- Joined: 2018-05-17, 02:34
- Location: Los Berros Canyon, California
- Contact:
Re: Dorando keyconfig - Add a new key - Page Style changing
Right, I had forgotten about thatRealityRipple wrote: ↑2025-01-19, 10:38Um... https://realityripple.com/Software/Applications/PMResView/.

"The world will not be destroyed by those who do evil, but by those who watch them without doing anything." - Albert Einstein
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: Dorando keyconfig - Add a new key - Page Style changing
MozJAR Recompressor also exists, lets you unpack and repack.