Zoom

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1913
Joined: 2012-08-19, 20:32

Re: Zoom

Unread post by back2themoon » 2021-09-01, 14:37

As mentioned, NoSquint purposely disables Pale Moon's zoom controls and re-enables them if uninstalled. The "problem" with PM's controls (at least for me) is that they are more susceptible to permanent deletion (accidental or not) either by external cleaners, PM's Clear History tool or some other extension. If you've configured many websites, this is an issue.

I believe zoom settings are stored somewhere in PM's Site Preferences configuration file(s)? These cannot be easily backed up/restored, and I assume include other settings too, unrelated to zoom. NoSquint keeps its settings in prefs.js/about:config, so they are easier to handle.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 30901
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Zoom

Unread post by Moonchild » 2021-09-01, 15:27

back2themoon wrote:
2021-09-01, 14:37
I believe zoom settings are stored somewhere in PM's Site Preferences configuration file(s)?
They are. they are saved alongside all other site-specific preferences you may have set (see permissions manager and page info)
back2themoon wrote:
2021-09-01, 14:37
These cannot be easily backed up/restored
Yes they can. Backup your browser profile.
Specifically, it's stored in content-prefs.sqlite if you want to be fine-grained about it. That database store spellcheck language, zoom level, and last-used upload and download directories per site.
back2themoon wrote:
2021-09-01, 14:37
they are more susceptible to permanent deletion (accidental or not) either by external cleaners, PM's Clear History tool or some other extension.
They are no more or less susceptible to permanent deletion than any other user-set data. External cleaners are usually a bad idea to begin with because they are by design sledgehammers (since they won't be using the browser's APIs to do their work). The browser's clear data tool has clear settings for site data. Are you blaming us for PEBCAK?
back2themoon wrote:
2021-09-01, 14:37
NoSquint keeps its settings in prefs.js/about:config, so they are easier to handle.
prefs.js is not designed to store large amounts of data. It is slow and inefficient (and actually more prone to issues than a database is). Although it happens to be human-readable, the "I might lose them" argument isn't in any way less.
"Just because you know something is going to break in the end, doesn't mean that it can't have an effect that lasts into the future. Joy. Wonder. Laughter. Hope. The world can be better because of what you built in the past." -- Tom Scott
Image

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1913
Joined: 2012-08-19, 20:32

Re: Zoom

Unread post by back2themoon » 2021-09-01, 22:09

Thanks for the helpful info. As mentioned, it's a personal preference as I prefer to clearly separate and identify my various backups and settings. I was also thinking about possible profile corruption, whether PEBCAK or not. If content-prefs gets corrupted or needs to be deleted, you are out of luck. You can't extract anything from it (I think).

Yes, backup. Prefs.js is just easier to backup -for me-, that's all. You don't even have to restore all of it.
Moonchild wrote:
2021-09-01, 15:27
prefs.js is not designed to store large amounts of data.
At what point approximately is prefs.js size going to be a problem? Or is it about separate entries within? The NoSquint entries there can get lengthy if many websites are stored, but it's "just" text, right? (131kb currently)

Another cool feature of NoSquint, if a bit esoteric, is the ability to adjust full and text zoom independently and simultaneously. I seem to remember this is not possible with the internal zoom manager (it's either full or text zoom, not both).

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 30901
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Zoom

Unread post by Moonchild » 2021-09-02, 14:52

back2themoon wrote:
2021-09-01, 22:09
At what point approximately is prefs.js size going to be a problem? Or is it about separate entries within?
Both, but in fact having very large strings stored in single preferences is much more of a problem than having a gajillion entries, if you want to be specific. Either is a bad idea though.
Note that nothing is stopping extensions from actually using sqlite to store data either. It's all available from within the browser and accessible through APIs.
"Just because you know something is going to break in the end, doesn't mean that it can't have an effect that lasts into the future. Joy. Wonder. Laughter. Hope. The world can be better because of what you built in the past." -- Tom Scott
Image

Quorx
Moonbather
Moonbather
Posts: 74
Joined: 2016-11-28, 16:58
Location: Munich

Re: Zoom

Unread post by Quorx » 2021-09-06, 14:07

Nevertheless, NoSquint has a number of advantages over the built-in option:
• As already mentioned, the magnification factor is visible in the status bar. Most useful if you want to return to original size.
• NoSquint offers the possibility to change only the text size and leave the graphic elements unchanged.
• In addition, you can define exceptions if you do not want the settings to be used for the entire site. If, for example, someone has reduced www.palemoon.org/releasenotes.shtml to 80%, then with PaleMoon’s own zoom function www.palemoon.org is also reduced and (as far as I know) there is no way to handle these pages separately.
• And, as said, NoSquint allows you to define text colours site specific. Very helpful for pages in low-contrast or garish design. If you see that your setting is no good, you can easily switch back to the given display.

Of course, I wouldn't mind if a future PaleMoon had such sophisticated setting options itself...

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 30901
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Zoom

Unread post by Moonchild » 2021-09-06, 15:39

Then make sure it's updated before the next release.
"Just because you know something is going to break in the end, doesn't mean that it can't have an effect that lasts into the future. Joy. Wonder. Laughter. Hope. The world can be better because of what you built in the past." -- Tom Scott
Image

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 3410
Joined: 2015-12-09, 15:45
Contact:

Re: Zoom

Unread post by moonbat » 2021-09-13, 13:00

Quorx wrote:
2021-09-06, 14:07
Of course, I wouldn't mind if a future PaleMoon had such sophisticated setting options itself...
One of the reasons for Pale Moon's efficiency is that the core browser is not bogged down by feature creep of this kind. The whole point of a powerful extension system is that you can extend functionality for those that need it. Not everyone requires this level of fine grained zoom control so makes no sense forcing it on those that don't want it.

Firefox got rid of their extension system and have resorted to stuffing the browser with features out of the box, that does no good for either performance or security (more code = more complexity and larger attack surface for exploits).
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 20.1 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
WiseWolf
Fanatic
Fanatic
Posts: 160
Joined: 2020-10-10, 06:13

Re: Zoom

Unread post by WiseWolf » 2021-09-13, 20:35

"Firefox got rid of their extension system and have resorted to stuffing the browser with features out of the box, that does no good for either performance or security (more code = more complexity and larger attack surface for exploits"
Off-topic:
Try telling that to the free software users who seem to be okay with a bloated system... and other types of users as well.

Redhat has been bloating linux since 2014 and possibly even before that.

I only wish that OpenBSD devs were not so hard to get along with/unreasonable...

They have pretty darn good security supposedly...

Hyperbola has chosen that as a base in the future for a reason I am sure.

1,064,411,236 is how much debian buster has,

OpenBSD has: 33,886,469

It's a shame their leader is easily pissed off, on the smallest of things.

Anywho, my point I guess is, they agree with you on more code = complexity

I compared Debian Buster to OpenBSD 6.5 because both are around the same age.

But yeah, I agree with you Moonbat, I just wish more people did too.

User avatar
Gordon Dry
Fanatic
Fanatic
Posts: 106
Joined: 2014-10-14, 19:54
Location: Germany

Re: Zoom

Unread post by Gordon Dry » 2021-09-24, 20:08

As I edited my version of NoSquint 2.2.2 with all infos found in this thread to a variant that works on my side with Pale Moon 29.4.1 I wonder why the heck it does not work on the rig of my girl friend with the same Pale Moon and the same version of the addon.
It's just the same "non-working" behaviour as mentioned before.
There are those days...

Post Reply