Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change font size of address bar in Chrome programmatically

I want to change the font size of the address bar in Chrome programmatically since it's too big for me.

Is there any way to do this?

like image 638
Shan Avatar asked Aug 20 '13 19:08

Shan


People also ask

How do I change font size in address bar chrome?

Change font size onlyIn the Settings window, scroll down to the Appearance section. Under Appearance, click the drop-down menu for the Font size entry. Select the desired font size to set as the default. The options are Very small, Small, Medium, Large, and Very large.

How do I change the size of the address bar?

Goto to Displays, go to Resolution, change from "Default for Display" to "Scaled" Chose a larger text option. This will apply to all applications on your computer. Your browser address bar and its font, will be larger but same will apply to the results.

What font is used in Chrome address bar?

depends on the version... it uses the system font, which is San Francisco as of El Capitan, but Lucida Grande for earlier versions.


1 Answers

Generally, the font size of the address bar is determined by your OS's default font size. Read comments here: https://code.google.com/p/chromium/issues/detail?id=46472. So if you want to adjust it, change your OS default.

If you build your own version of Chrome, you can change the look and feel of the browser, but you'll have to write different code for each platform you want to support.

If you don't want to build your own version of Chrome, then on Windows, you can inject yourself into the Chrome process with SetWindowsHook or SetWindowsHookEx, find the window handle corresponding to the address bar, and then do anything you want to it. Similar idea on OSX. Not sure about Linux. This isn't a recommended approach; it's invasive and subject to breakage.

As far as a Chrome API for an extension or app to change the address bar size, nope, can't do that.

like image 77
sowbug Avatar answered Nov 08 '22 11:11

sowbug