Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

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 trả lời
  • 4 gặp vấn đề này
  • 6 lượt xem
  • Trả lời mới nhất được viết bởi 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.

Giải pháp được chọn

You can add additional flags.

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

See also:

Đọc câu trả lời này trong ngữ cảnh 👍 0

Tất cả các câu trả lời (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.

Được chỉnh sửa bởi TheAviv vào

more options

Giải pháp được chọn

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.

Được chỉnh sửa bởi TheAviv vào

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.