Mozilla VPN is currently experiencing an outage. Our team is actively working to resolve the issue. Please check the status page for real-time updates. Thank you for your patience.

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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?