Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

Default preferences: How to set default zoom?

more options

I'm wondering how to configure a default zoom level for all users.

I want

about:preferences -> Default zoom

to have a default value of 133% instead of 100%.

So far I'm using the files

firefox/distribution/distribution.ini

and

firefox/browser/defaults/preferences/all-XXX.js

for configuration, but I don't know which keyword to use. I compared the content-prefs.sqlite file between to test profiles, one having 100% default zoom, the other having 133% default zoom.

The database says there is a setting "browser.content.full-zoom", but I can't configure this with the *.ini or *.js file, or can I?


I also read this:

https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/A_brief_guide_to_Mozilla_preferences

but it didn't help.

I'm wondering how to configure a default zoom level for all users. I want about:preferences -> Default zoom to have a default value of 133% instead of 100%. So far I'm using the files firefox/distribution/distribution.ini and firefox/browser/defaults/preferences/all-XXX.js for configuration, but I don't know which keyword to use. I compared the content-prefs.sqlite file between to test profiles, one having 100% default zoom, the other having 133% default zoom. The database says there is a setting "browser.content.full-zoom", but I can't configure this with the *.ini or *.js file, or can I? I also read this: [http://example.com https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/A_brief_guide_to_Mozilla_preferences] but it didn't help.

Tất cả các câu trả lời (2)

more options

This global zoom setting isn't stored as a pref in about:config (prefs.js).

The default global Zoom value as set in "Options/Preferences -> General -> Zoom" is stored in the content-prefs.sqlite database under settings -> browser.content.full-zoom that links via the 'settingID' to prefs -> value

more options

Some settings can be set programmatically using JavaScript in an Autoconfig file. This particular setting is fairly new so I don't think I've seen code to set it. Also, perhaps you don't want to override a setting the user may have customized? Well, perhaps is not worth the time, but if it's a high priority, perhaps it is worth pursuing.