Dark theme for chrome DevTools from command line - google-chrome

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).

Related

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

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?

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.

How open Chrome without url field from shortcut

Are there anyway to open Chrome without url field from shortcut? What flags ara neccesary to open it? Commnad line flags (Windows)
I know that I can open Chrome from command line in new tab: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --new-window "http://marcodetrabajo.com"
I need it without url field, only web content.
Info: link
Maybe, with another browsers?
Thanks
I solved the problem. The solotion in Chrome browser is:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --app=http://example.com
No flags are needed. Just open CMD and type:
start chrome example.com
If you want to open multiple pages in multiple tabs:
start chrome \example.com \google.com

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