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

Force JavaScript link to open in new window or new tab

  • 4 trả lời
  • 2 gặp vấn đề này
  • 58 lượt xem
  • Trả lời mới nhất được viết bởi Baz

more options

I want to be able to open any links I choose in new tabs/windows, either with MMB or context menu. Many sites use JavaScript to thwart this - only allowing the link to open in the same tab. aboutconfig settings make no difference for these sites. Disabling JavaScript also fails as inevitably the offending website then won’t work at all. I have not been able to find an add-on which achieves my aim either.

It’s particularly annoying when there are a large number of links and I want to open all of them in new tabs. The only way I have found is to copy the URL of the offending page into a number of new tabs and then click the links in each tab.

Also see Bug 55696

I want to be able to open any links I choose in new tabs/windows, either with MMB or context menu. Many sites use JavaScript to thwart this - only allowing the link to open in the same tab. aboutconfig settings make no difference for these sites. Disabling JavaScript also fails as inevitably the offending website then won’t work at all. I have not been able to find an add-on which achieves my aim either. It’s particularly annoying when there are a large number of links and I want to open all of them in new tabs. The only way I have found is to copy the URL of the offending page into a number of new tabs and then click the links in each tab. Also see Bug 55696

Tất cả các câu trả lời (4)

more options

You can drag and drop links into the tab bar between tabs to create new tabs, this also works with multiple selected links.

If the website won't let you open the context menu, you can override it by holding down the Shift key while right-clicking.

Hữu ích?

more options

Neither of those work I'm afraid. These are not normal links - they are created by JavaScript. The context menu works, but there’s no “open in new window” as it’s not an html link. Similarly there’s nothing to drag and drop. What I want is a means of interpreting the JavaScript as an html link. It’s a know problem - see Bug 55696

Hữu ích?

more options

Does it help to set the following preference in about:config to 0? browser.link.open_newwindow.restriction

https://support.mozilla.org/en-US/questions/1400907#answer-1556750 https://support.mozilla.org/en-US/questions/1365765#answer-1477990

Hữu ích?

more options

Sadly not. It's already set to zero. It seems that about:config settings only affect the html - not artificial JavaScript abominations.

Hữu ích?

Đặt một câu hỏi

Bạn phải đăng nhập vào tài khoản của bạn để trả lời bài viết. Vui lòng bắt đầu một câu hỏi mới, nếu bạn chưa có tài khoản.