Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Learn More

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

command line option for a new private window

more options

What command line option(s) should I use to open several URLs as tabs in a NEW private browsing window. So, if a private browsing window is already open, a new window should be opened.

I've checked https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options /quote -private-window URL Open URL in a new private browsing window. If a private browsing window is already open, a new tab is opened in the existing window. /unquote Why can one open new private windows pressing ctrl-shft-P, and apparently not in a command line ?

What command line option(s) should I use to open several URLs as tabs in a NEW private browsing window. So, if a private browsing window is already open, a '''new window should be opened'''. I've checked https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options /quote -private-window URL Open URL in a new private browsing window. If a private browsing window is already open, a new tab is opened in the existing window. /unquote Why can one open new private windows pressing ctrl-shft-P, and apparently not in a command line ?

Tutte le risposte (1)

more options

If you use -private-window without a URL, you get the usual private window home page in the tab. That's the section just before the one you quoted.

That said, I think you have to do each tab separately. Let's assume your firefox.exe is at this location:

"C:\Program Files\Mozilla Firefox\firefox.exe"

You could use this batch file (save as "test.bat" in plain text format) to launch a new private window, then add 3 tabs:

@echo off
echo Opening a new private window
"C:\Program Files\Mozilla Firefox\firefox.exe" -private-window
REM Firefox needs a moment before we send it tabs to open
timeout 1
echo Opening three private tabs
"C:\Program Files\Mozilla Firefox\firefox.exe" -private-window "https://support.mozilla.org/"
"C:\Program Files\Mozilla Firefox\firefox.exe" -private-window "https://addons.mozilla.org/"
"C:\Program Files\Mozilla Firefox\firefox.exe" -private-window "https://developer.mozilla.org"
echo Done!
pause