0

On my high resolution screen for some applications that don't scale to the global scale factor I use a special start-up script, that changes the resolution and scale factor down to Full-HD and scale factor 1 but then the extension that scales everything twice in firefox is making everything really big. I have to disable the extension in the add-on menu by hand.

Is there a way to disable an extension inside a running instance of Firefox from the console?

Or can I alter my add-on Zoom Menu Elements so it stores the zoom state in the file system where I can alter it via bash?

related topic: Fix scaling of java-based applications for a high DPI screen

rubo77
  • 32,486

1 Answers1

1

No there isn't anything elegant... Don't take my word for it, examine the Mozilla remote commands source code

There is a very unelegant method though: pkill firefox&&sleep 1&&firefox -safe-mode.

A bit more detail on the inelegant solution now you mentioned the "Zoom Menu Elements":

There is a way of locking preferences in Firefox, but that is again for a deployment situation, so changing it on the fly is again a pkill firefox&&ChangeUserPref.sh layout.css.devPixelsPerPx iOneorTwo&&firefox.

If this is an option for a solution, a prefs.js file must be created, ChangeUserPref.sh must be written and the "Zoom Menu Elements" must be deactivated (as this functionality will now be managed outside Firefox)

On the "loosing the tabs" because of the restart: that is also a preference, so can be locked as well, but that's the best I can do for you... :(

Fabby
  • 34,259