5

Is there any command line switch or workaround for start chrome with some custom zoom?

0
7

Scale to 1.5 times base setting using

--force-device-scale-factor=1.5

Other command line options can be found here: https://peter.sh/experiments/chromium-command-line-switches/

4
  • I'm using this: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --force-device-scale-factor=1.5 --incognito and opens in incognito mode, but the zoom doesn't change, could be that I'm using chrome? – user63227 Oct 30 '17 at 10:43
  • @user63227 I tested it on Arch Linux using /usr/bin/chromium, hence . On Windows you‘d probably need to introduce the parameter differently e.g. /force-device-scale-factor=1.5. – Jonathan Komar Oct 30 '17 at 16:14
  • I will try and will let you know, but the --incognito parameter works fine with the -- – user63227 Oct 30 '17 at 21:30
  • 2
    This is not the same as ctrl+ and ctrl- – shrewmouse Dec 13 '18 at 17:19
2

Apparently not. Here's a list of Chrome command line options.

1
  • 1
    looks like a partial list, because I can't see the --incognito option, and I know that is a valid option – user63227 Sep 28 '12 at 17:10
2

If you just want to temporarily set zoom for testing purposes you can set the zoom of the body in your css. That is essentially all chrome does anyway.

This would zoom the page to 50%.

body {
   zoom: .5;
}

Or if you want to do it for every page chrome opens you can change the default zoom in Settings click the Show advanced settings... link and look under the Window Contents section. This can be annoying though because every page you open will be effected.

2

I use tampermonkey to manage websites with zoom levels and other mods.

// ==UserScript==
// @name         Netflix
// @namespace    http://your.homepage/
// @version      0.1
// @description  enter something useful
// @author       You
// @match        https://www.netflix.com/*
// @match        http://www.netflix.com/*
// @grant        none
// @require       http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.js
// ==/UserScript==

console.log('Netflix');

jQuery('#hd').remove();
jQuery('title').html('Code Base');
jQuery( '<link rel="icon" href="demo_icon.gif" type="image/gif" sizes="16x16">' ).appendTo( "head" );
jQuery('body').css('zoom',.15);

Thanks Will for the zoom idea!!

1

Do you mean always? Or sometimes (like from a particular shortcut on the desktop)?

You can set a default viewing zoom level in the Chrome settings page (chrome://chrome/settings/), by clicking on Show advanced settings..., and scrolling down to the Web content section. This, however, will apply to every instance of Chrome, and not a single one as a command line option would.

2
  • 1
    from a shortcut in the desktop, I'm also adding the --incognito switch, so the chrome setting is not persistent between sessions – user63227 Sep 28 '12 at 17:09
  • 1
    Hey, check this: Zoom All Chrome extension. This solution may not be as elegant as a command line switch, but may very well work for you. You can enable it to work under Incognito in Settings -> Extensions -> Allow in Incognito mode. Hope it helps. – ahpoblete Sep 30 '12 at 23:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.