Skip to content

opening multiple URLs

Bug

If a private browsing window is not already open when the script is run, one of the URLs in the list will not open in Firefox.

Attention

If Restore previous session is enabled in Firefox, the tabs will need to be closed individually or with File > Exit in the menu to avoid re-opening all the tabs the next time Firefox is closed and reopened.

Attention

If Firefox is not already open, running the command will open Firefox, and the command prompt will be inaccessible until Firefox is closed.

For Firefox, use for i in $(</foo/bar/baz.txt); do firefox --private-window $i; done, where /foo/bar/baz.txt is the path to the text file containing the list of URLs to be opened. By default, the script opens the tabs in a new private window. Omit --private-window to open the URLs in an ordinary window instead.

licensing

No rights reserved: CC0 1.0.

prior work