搜尋 Mozilla 技術支援網站

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

Learn More

In Firefox Preferences, under General, for Home Page, I would like http://en.wiktionary.org/wiki/Community_Portal|http://en.wikipedia.org/wiki/Portal:Contents|http://www.google.ca/ to open up as separate windows instead of tabs. How would I do that?

  • 7 回覆
  • 4 有這個問題
  • 13 次檢視
  • 最近回覆由 cor-el

more options

I know the vertical bar character | can be used for launching webpages in separate tabs, when opening Firefox. I would like to know what character (if any) can be used for launching webpages in separate windows (instead of tabs), when opening Firefox.

I know the vertical bar character | can be used for launching webpages in separate tabs, when opening Firefox. I would like to know what character (if any) can be used for launching webpages in separate windows (instead of tabs), when opening Firefox.

被選擇的解決方法

You can add additional flags.

"menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes"

See also:

從原來的回覆中察看解決方案 👍 0

所有回覆 (7)

more options
more options

Thank you very much cor-el.

However, when I use your code, Firefox treats the new windows as pop-ups. This creates a few problems:

(1) I have to enable pop-up windows in Firefox Preferences. (I tried adding wiktionary.org, wikipedia.org, and google.ca as websites allowed to open pop-up windows. That did not seem to have an effect.)

(2) The new windows are missing the usual buttons, address bar, search bar, and tab bar. They are also missing the vertical and horizontal scroll bars. I don't know if Firefox allows a user to customize preferences for pop-up windows. It does not seem like it.

(3) The new windows are not at their max size. Even after I maximize them, Firefox does not seem to learn my preferences. I tried altering your code by replacing 'resizable=yes' with 'resizable=no'. That did not seem to have an effect.

由 TheAviv 於 修改

more options

選擇的解決方法

You can add additional flags.

"menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes"

See also:

more options

Thank you again cor-el.

The link you provided was helpful. In my previous reply, I summarized three problems. I was able to solve problems (2) and (3) with the following code:

javascript:void(window.open('http://en.wiktionary.org/wiki/Community_Portal','','height=700,width=1400,menubar=yes,toolbar=yes,location=yes,personalbar=yes,status=yes,resizable=yes,scrollbars=yes')); void(window.open('http://en.wikipedia.org/wiki/Portal:Contents','','height=700,width=1400,menubar=yes,toolbar=yes,location=yes,personalbar=yes,status=yes,resizable=yes,scrollbars=yes')); void(window.open('http://www.google.ca/','','height=700,width=1400,menubar=yes,toolbar=yes,location=yes,personalbar=yes,status=yes,resizable=yes,scrollbars=yes'));

However, problem (3) was not solved elegantly. This is because the fullscreen feature is not implemented in Firefox. Instead, I had to set a large enough height and width for the windows.

There is another problem, which I did not mention in my previous reply:

(4) A blank window is left over.

I solved problem (4) with the following code:

javascript:location='http://en.wiktionary.org/wiki/Community_Portal'; void(window.open('http://en.wikipedia.org/wiki/Portal:Contents','','height=700,width=1400,menubar=yes,toolbar=yes,location=yes,personalbar=yes,status=yes,resizable=yes,scrollbars=yes')); void(window.open('http://www.google.ca/','','height=700,width=1400,menubar=yes,toolbar=yes,location=yes,personalbar=yes,status=yes,resizable=yes,scrollbars=yes'));

However, the solution led to a new problem:

(5) For some reason, the last segment (for opening http://www.google.ca/) is ignored.

To summarize, problems (2), (3), and (4) were solved. Problem (5) resulted. Problem (1) remains.

由 TheAviv 於 修改

more options

If the pref browser.link.open_newwindow.restriction is set to 2 then special pop-up like the ones with a width and height specified should open in a new window without the need to allow pop-ups.

more options

The preference browser.link.open_newwindow.restriction is already set to 2 by default in my browser. (The preference browser.link.open_newwindow is set to 3.) I still need to allow pop-ups for the code to work. However, I will consider problem (1) to be minor.

I would like to elaborate on problem (5): After the operating system loads, and Firefox is opened for the first time, the code works perfectly. However, if Firefox is restarted, the last segment (for opening http://www.google.ca/) is ignored. Since the code works pefectly the first time, I will consider problem (5) to be minor as well.

Since the two remining problems are minor, I will consider the question solved.

The solution is to use the following code in Firefox Preferences, under General, for Home Page:

javascript:location='http://en.wiktionary.org/wiki/Wiktionary:Community_portal'; void(window.open('http://en.wikipedia.org/wiki/Portal:Contents','','height=700,width=1400,menubar=yes,toolbar=yes,location=yes,personalbar=yes,status=yes,resizable=yes,scrollbars=yes')); void(window.open('http://www.google.ca/','','height=700,width=1400,menubar=yes,toolbar=yes,location=yes,personalbar=yes,status=yes,resizable=yes,scrollbars=yes'));

Although the two resulting problems are minor, comments are still welcome.

Thank you cor-el for helping me arrive at a solution.