How open Chrome without url field from shortcut - google-chrome

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

Related

VS code. build in terminal command 'open file.html' opens file in browser instead of vs code redactor

how to setup vs code so it opens files in its own redactor? It worked fine but somehow it broke down and now it opens html files in browser by default.
After terminal command 'open fileName' file opens in vs code redactor window.
Hi I'm here trying to help you. if i'm not mistaken, i'm guessing that you are using MacOS right?
Since i'm using Windows 11, i dont know anything about MacOS, but usually i open VScode via terminal (Command Prompt / CMD) then i go to a folder path and use command code . in there.
So the VScode open and i can see my .html file and other files in that folder in the VScode.
And also i believe that in MacOS it is also possible to set by default what app is used to open certain files such as .html file. In the Windows 11, i can changed it by using the "open file with" feature as shown in this link image. I can choose the VScode option, so it open VScode by default when i click the .html file and not open browser.
I also have some references that might help you:
https://youtu.be/YxJXIPebqMI
https://youtu.be/xLY6fqT2fIU
Sorry for my bad English, this is all I can give. I hope this can help you

Can't open local html file in google chrome version 109.0.5410.0

I use Google Chrome Dev (109.0.5410.0) on Windows 10.
After recent update I noticed that I am unable to open any .html file from my local disc. Let me describe the scenario.
For example:
In my desktop there is a file as C:\Users\soumyadipd\Desktop\test.html
Now if I drag-and-drop the file to chrome then it opens using the URL file:///C:/Users/soumyadipd/Desktop/test.html in address bar.
But if I double click the file to open then the file failed to open because the URL is http://%22c/Users/soumyadipd/Desktop/test.html%22"
Anyone faced this problem ? Or is it a Chrome bug? Or any other solution is there?

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?

Chrome's --auto-open-devtools-for-tabs

I'm trying to get the devtools to open automatically when starting chrome from a shortcut with a command line switch --auto-open-devtools-for-tabs.
i.e. the path of that shortcut is: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -incognito -auto-open-devtools-for-tabs (or --auto-open-devtools-for-tabs).
But both don't seem to open the dev tools, neither does entering in the cmd chrome.exe -auto-open-devtools-for-tabs (or --auto-open-devtools-for-tabs), of course when in Chrome's folder.
Maybe I'm doing something wrong?
The command is from:
http://peter.sh/experiments/chromium-command-line-switches/#auto-open-devtools-for-tabs
https://stackoverflow.com/a/41452619/4279201
This flag only applies when you open the first chrome instance.
Close all chrome windows
Run "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -incognito -auto-open-devtools-for-tabs
If you want your daily browser, with all tabs but without devtools, at the same time as you're debugging a website with devtools automatically opening, you have to run them separately.
Alternative: Stable + Beta
One example is to use example Chrome stable and Chrome beta.
"C:\Program Files\Google\Chrome\Application\chrome.exe"
"C:\Program Files\Google\Chrome Beta\Application\chrome.exe" --auto-open-devtools-for-tabs
Alternative: data-dir
"C:\Program Files\Google\Chrome\Application\chrome.exe" -incognito --auto-open-devtools-for-tabs --user-data-dir="%APPDATA%\ChromeDevOrAnyName"

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