How to set default web page size in Firefox?

I recently downloaded Firefox the new version, and for most of the part it is good. Though a problem in it I found is that every time I open a new web page I need to set the zoom level to 170% so that the page becomes readable and fits the screen size. How can I set it once and for all?

Note: I am using a Windows 10 machine.


Solution 1:

You can set layout.css.devPixelsPerPx to 1.0 (default is -1) on the about:config page. Adjust its value in 0.1 or 0.05 steps (1.1 or 0.9) until icons or text looks right. Modifying layout.css.devPixelsPerPx affects user interface and web pages (global zoom). You can use an extension to correct the appearance of web pages.

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

http://kb.mozillazine.org/about:config

Solution 2:

This is one of those things that I've found perpetually frustrating with Firefox. I was using NoSquint for a while, but I found it to be a somewhat inconsistent and gnarly plugin to use. And now it's no longer being maintained and doesn't work with the most recent versions of Firefox.

Until the team at Mozilla do the sensible thing and reinstate this basic accessibility feature, I think the best extension-free solution can be found in a comment on this bug ticket. In case that link ever breaks, I'm reposting the contents below:

  1. Open Browser Console (https://developer.mozilla.org/en-US/docs/Tools/Browser_Console#Opening_the_Browser_Console)
  2. On the command line (https://developer.mozilla.org/en-US/docs/Tools/Browser_Console#Browser_Console_command_line):

    To Set Global Zoom (put whatever you want instead of 1.33) enter: FullZoom._cps2.setGlobal(FullZoom.name,1.33,gBrowser.selectedBrowser.loadContext);

    To Reset (back to 1) enter: FullZoom._cps2.removeGlobal(FullZoom.name,gBrowser.selectedBrowser.loadContext);

To be clear, the number here represents a decimalised version of zoom percentage. So as with the original question, a zoom level of 170% would be expressed as 1.7.