How to open a URL in Firefox \ Chrome from the command line in popup mode?

When running the following command line:

C:\>"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "https://aaa.com" --new-window 

it opens the browser in a new window, but with all the toolbars - how can I open the browser like a pop-up window?

+6
source share
3 answers

Perhaps โ€œapplication modeโ€ is what you are looking for.

Here is an example:

 "C:\Program Files\Google\Chrome\Application\chrome.exe" --app="http://www.youtube.com/" 
+6
source

This can help

How to launch a browser without a window frame or tab / address bar

https://superuser.com/questions/459775/how-can-i-launch-a-browser-with-no-window-frame-or-tabs-address-bar

Listed below are all the command line switches for chrome

http://peter.sh/experiments/chromium-command-line-switches/

+3
source

in mozilla firefox you can do it like

 firefox.exe -new-window "www.google.com" firefox.exe -new-tab "www.google.com" 

in google chrome you can do it like

 chrome.exe --app="www.google.com" chrome.exe --kiosk "www.google.com" 
0
source

Source: https://habr.com/ru/post/976016/


All Articles