搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

How to set the default zoom of browser to lowervalue(say 50% of present zoom) through prefs.js?

  • 3 个回答
  • 7 人有此问题
  • 6 次查看
  • 最后回复者为 the-edmeister

more options

Hi, I want to reduce the browser zoom level to a lower value so that i could see the whole of webpage through prefs.js as its for a test automation. I just wanted to see whole page on the browser. Can any help me with what this can be achieved?

Hi, I want to reduce the browser zoom level to a lower value so that i could see the whole of webpage through prefs.js as its for a test automation. I just wanted to see whole page on the browser. Can any help me with what this can be achieved?

所有回复 (3)

more options

These are the three preferences which are related to zoom in about:config - changed values in about:config are written to the prefs.js file.
toolkit.zoomManager.zoomValues
zoom.maxPercent
zoom.minPercent

I don't think zoom works directly thru the prefs.js file, though.

I suggest you look at the Mozilla Developer Network articles for help with what you want to achieve, starting with this:
https://developer.mozilla.org/en-US/docs/Full_page_zoom

more options

Is the zoom of the webpage in browser just be controlled by some values in prefs.js as i cant tweak in any other form in the browser?

more options

Take a look at the Default FullZoom Level extension and see if it does what you want.
https://addons.mozilla.org/en-US/firefox/addon/6965