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
google-chrome google-chrome-extension


source to share


No one has answered this question yet

Check out similar questions:

1153
How do I get ASP.NET Web API to return JSON instead of XML using Chrome?
675
Remove blue border from css custom-styled button in chrome
593
How do I set a JavaScript breakpoint from code in Chrome?
432
How to print debug messages in Google Chrome JavaScript Console?
402
How do I run the JavaScript debugger in Google Chrome?
319
Google Chrome redirect localhost to https
312
Is there a way to get xpath in google chrome?
276
Firebug-like debugger for Google Chrome
121
google chrome :: console.log () extension from man page?
0
Google Chrome Extension Notification API Access Level



All Articles
Loading...
X
Show
Funny
Dev
Pics