Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Open homepages when Firefox first starts, but blank page in new window

  • 3 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 cs19122005

more options

Hi!

So I switched from Chrome, and there is one thing that keeps annoying me: the homepage and new window behavior.

In Chrome, you could define your pages that load when first launching the browser, but when you open a new window, it would default back to an empty page. This is the behavor that I want.

In Firefox, I only found the solution with setting the browser.startup.page option to 0, so new windows open with a blank page while you could still edit your homepages. But here, I would have to click the homepage button each time I initially start the browser. This is quite annoying, since it would always be an extra step when launching the browser.

Could anyone help me get the behavior like in Chrome? I want Firefox to open my homepages on startup, but use empty pages when it's already open.

Hi! So I switched from Chrome, and there is one thing that keeps annoying me: the homepage and new window behavior. In Chrome, you could define your pages that load when first launching the browser, but when you open a new window, it would default back to an empty page. This is the behavor that I want. In Firefox, I only found the solution with setting the browser.startup.page option to 0, so new windows open with a blank page while you could still edit your homepages. But here, I would have to click the homepage button each time I initially start the browser. This is quite annoying, since it would always be an extra step when launching the browser. Could anyone help me get the behavior like in Chrome? I want Firefox to open my homepages on startup, but use empty pages when it's already open.

所有回复 (3)

more options

Unfortunately, there's no way to exactly emulate what Chrome does. Customary workarounds include:

(A) Using Pinned Tabs for sites you want to open at startup. See: Pinned Tabs - keep favorite websites open and just a click away.

Pinned Tabs are saved in session history files, so setting Firefox to flush history when it closes probably is incompatible with this feature, if you do that.

(B) Modifying the Firefox shortcut.

Maybe this is only a Windows thing, but you can add URLs to the command line, for example:

"C:\Program Files\Mozilla Firefox\firefox.exe" -url https://www.example.com/ -url https://support.mozilla.org/

The other approaches all appear to require manual action, unless there's an add-on that can take care of it.

more options

Note that the OP is using Linux where you can use a bash script to launch Firefox.

#!/bin/sh

# cd to Firefox installation folder and start via ./firefox
cd /usr/local/mozilla/firefox
./firefox -url <url1> -url <url2>

more options

cor-el said

Note that the OP is using Linux where you can use a bash script to launch Firefox.
#!/bin/sh

# cd to Firefox installation folder and start via ./firefox
cd /usr/local/mozilla/firefox
./firefox -url <url1> -url <url2>

Seems this is the way to go. Does anyone know if it's possible to edit the command for the firefox shortcut in the dock/startmenu?