Accessing the default zoom level from the Google Chrome API

For my first extension, I would like to make the default zoom level more accessible rather than hidden behind Settings> Advanced Settings. Ideally, I would like to have a button behind the omnibar that allows me to select multiple default zoom options.

I am now browsing the Chrome API to see how to access the default zoom level. I found here getZoom()

/ setZoom()

and getZoomSetting()

/ setZoomSetting()

here . For settings, I can change the mode and scope .

Q : can I set the default zoom level using the Chome API?

Background: I have a retina screen and my browser is usually using the default zoom level of 150%. When I connect via an external monitor it is a non-retina panel and I want to return it to 100%. I set / re-set my default zoom level several times a day and it gets very annoying. As an experiment, I want to create an extension for the first time.

+3


source to share





All Articles