open "chrome://version" page in chrome from command line? - google-chrome

You can open a URL in chrome from the command line with
chrome.exe https://google.com
but when trying to do like chrome.exe chrome://version, it simply opens an empty page.
It seems that the chrome protects the privileged pages from abnormal behavior.
Is there any way to open the privileged pages from command line?

Related

How to run multiple chrome profiles in different remote debuging ports in ubuntu?

I have 2 chrome profiles. My aim is to control these 2 windows using puppeteer. So first, I have to open these profile windows via command line, specifying the debugging ports.
command 1: google-chrome --remote-debugging-port=9222 --profile-directory="Default"
command 2: google-chrome --remote-debugging-port=9223 --profile-directory="Profile 1"
When 1st command is executed, it opens a chrome window with the profile I mentioned. And I also get a WS URL for that browser. So I can use that in puppeteer.
Problem is while running second command. It also opens the profile, but no URL. It says "Opening in existing browser session".
I want to open more profiles and control them with puppeteer. Please help.

Run CloudEndPoints Explorer on Local HTTP

I'm trying to run the Api Explorer in LocalHost But it always show the Error
The API you are exploring is hosted over HTTP, which can cause problems.
So I follow the instruction
Go to File Explorer then paste this to address bar >> C:\Program Files (x86)\Google\Chrome\Application (or just go to where you can find your chrome.exe)
Right click chrome.exe > send to > Desktop (Create Shortcut)
Go to your desktop then find the chrome shortcut you've created.
Rename it to ChromeForTesting (this step is optional)
Right click the shortcut, then Click Properties
At the "Target", paste the following at the end of the link
--user-data-dir=test --unsafely-treat-insecure-origin-as-secure=http://localhost:8080
so Target should look somewhat similar to this
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir=test --unsafely-treat-insecure-origin-as-secure=http://localhost:8080
Click Ok..
During testing close all of your opened google chrome browser.
Then double click ChromeForTesting shortcut (the one you've created), when a prompt appears, just click ok..
But After compelting this When I run that shortcut it will give the error
you are using unsupported command line flag --user-data-dir=test --unsafely-treat-insecure-origin-as-secure=http://localhost:8080
I also try to click load unsafe script but this is also not working.
Here is screen shot.

Dark theme for chrome DevTools from command line

Is there any flag which I can use to run Chrome browser from terminal, with will enable dark theme for DevTools?
How about specifying the user data directory, and pointing it to a profile that has dark theme enabled?
Just worked on my Mac:
--user-data-dir ~/Library/Application\ Support/Google/Chrome\ Canary/Profile\ 4
See How to specify command line flags for those who don't know how to launch Chrome from the command line.
Open a profile and go to chrome://version to see the location of that user profile directory (under Profile Path).

How to open chrome://inspect devices using command prompt

I want to open chrome://inspect from windows command prompt.
Here my use case is I want to open the chrome browser from command prompt(using ProcessBuilder in java) and chrome://inspect link so i can see the devices attached to my system
so i tried opening chrome://inspect using this command
start chrome chrome://inspect which is not working
if I replace chrome://inspect with any url it's working.
Can any one let me know how to do this from command prompt or any other possible ways to do this
Chrome URLs can't be opened from the command line. They must be typed by a user into the omnibar.

Chrome won't allow local camera access

I'm trying to test out some code for accessing a webcam on an HTML page and Chrome doesn't seem to allow me to. I made an exception for the file and yet everytime I reload (which it tells me will put the settings in effect) it goes back to blocking it
Go to:
chrome://flags/#unsafely-treat-insecure-origin-as-secure
Add your url there and enable this flag, relaunch and it should work.
You can open chrome with the flag disable-web-security
For Mac, in terminal:
open -a /Applications/Google\ Chrome.app/ --args --disable-web-security
For a PC in console:
chrome.exe --disable-web-security