Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Firefox: Change Zoom Values

📅 2012-Mar-02 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ firefox, zoom ⬩ 📚 Archive

Problem

On certain webpages, I find that the zoom increments of Firefox seem quite large. It would be nice to be able to tweak the zoom increment or level.

Solution

By default, Firefox is configured to zoom down to 30% and zoom up to 300%. There is no fixed increment in which in zooms down or up from the default value of 100%. Instead, it uses a list of zoom values. These default zoom values can be found in about:config at toolkit.zoomManager.zoomValues.

The default zoom values on my Firefox are:

.3,.5,.67,.8,.9,1,1.1,1.2,1.33,1.5,1.7,2,2.4,3

Multiply the values by 100 to get the zoom percentage. For example, .3 is 30% and so on.

Assume that I find that the zoom down from 1 to .9 is too big a leap. I would like the decrement here to be finer. If so, then I add a new zoom value .95 into the list between .9 and 1. In a similar manner, you can tweak the zoom values to whatever is appropriate to you.

Tried with: Firefox 10.0.2


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧