חיפוש בתמיכה

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

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 have this problem
  • 6 views
  • תגובה אחרונה מאת 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:

Read this answer in context 👍 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.