为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

Open custom urls only for first window

  • 4 个回答
  • 0 人有此问题
  • 530 次查看
  • 最后回复者为 Donald Hobern

more options

I have set four custom URLs to open each time I use my main Firefox profile - this works well. (I have several different profiles I use for different roles and sets of logins).

I frequently open new windows to hold a set of associated tasks.

If I specifically open a link into a new window, the new window only has that one tab - all good.

However, if I just open a new window (Ctrl-N), Firefox always opens four new duplicate tabs for my custom URLs.

Is there a way to limit custom URLs to the first window opened in a profile or to open custom URLs only if they are not already open in at least one window?

I have set four custom URLs to open each time I use my main Firefox profile - this works well. (I have several different profiles I use for different roles and sets of logins). I frequently open new windows to hold a set of associated tasks. If I specifically open a link into a new window, the new window only has that one tab - all good. However, if I just open a new window (Ctrl-N), Firefox always opens four new duplicate tabs for my custom URLs. Is there a way to limit custom URLs to the first window opened in a profile or to open custom URLs only if they are not already open in at least one window?

被采纳的解决方案

If you open a new window (Ctrl+Shift+N) then this window is populated with the home pages. The only way to open a blank new window is setting the home pages to a blank page.

If you only want this for the pages that open if you start Firefox then add those pages to the target line in the Firefox desktop shortcut. You can have the use a bat/cmd file with the start command if you exceed the maximum length of this field.

  • start "" "<path_to_firefox>\firefox.exe" -url URL1 URL2
定位到答案原位置 👍 0

所有回复 (4)

more options

By "custom urls" do you mean that you have 4 tabs which are saved and reopen when you restart the browser? I currently have 9 such tabs and if I open a new window, it contains only a blank tab.

Are you referring to a home page and new tab page?

more options

Thanks, Terry. I've uploaded an image showing my current settings (the cropped "Homepage and new windows" field includes the four pipe-delimited URLs).

I couldn't find any other obvious way to use these elements to get the basic behaviour I wanted (reopening a set of tabs when I reopen the Mozilla profile), but it is overenthusiastic and always opens them whenever I create a new window via Ctrl-N.

I'm probably missing something obvious...

more options

选择的解决方案

If you open a new window (Ctrl+Shift+N) then this window is populated with the home pages. The only way to open a blank new window is setting the home pages to a blank page.

If you only want this for the pages that open if you start Firefox then add those pages to the target line in the Firefox desktop shortcut. You can have the use a bat/cmd file with the start command if you exceed the maximum length of this field.

  • start "" "<path_to_firefox>\firefox.exe" -url URL1 URL2
more options

Thanks cor-el. I was expecting the default behaviour to work like Chrome's startup pages (or to locate an extension that mirrored that), but this does just what I need, at least for my main profile.

Note to self, in case I ever find myself here again: Holding shift while right-clicking items in Windows 11's dumbed-down taskbar allows you to get to the Properties dialog.