We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

How to open links in the same window, without changing preferences?

more options

What I want to know is if there's a way to force a click on a link to open in the current window just one time, if the page was using target=_blank or other methods to open a new tab/window.

The context menu doesn't have an option for that, was hoping for a modifier key option or something, or perhaps a plugin that would add such an option.

I know there's an advanced pref to change the behaviour of clicking on links to control new tabs, windows, etc. I don't want to change the default, I just for certain links want to prevent the new tab on a one-up basis.

(currently on Firefox 30 for Mac)

What I want to know is if there's a way to force a click on a link to open in the current window just one time, if the page was using target=_blank or other methods to open a new tab/window. The context menu doesn't have an option for that, was hoping for a modifier key option or something, or perhaps a plugin that would add such an option. I know there's an advanced pref to change the behaviour of clicking on links to control new tabs, windows, etc. I don't want to change the default, I just for certain links want to prevent the new tab on a one-up basis. (currently on Firefox 30 for Mac)

모든 댓글 (1)

more options

Firefox actually doesn't have any built-in preference for overriding the target attribute. If you are on a site where you know the link is coded to open in a new tab, currently, the best workarounds are:

  • drag and drop the link on the address bar
  • right-click > Copy Link Location and then paste in the address bar

Neither is convenient...

You might be able to find an add-on for this. For example, Tab Mix Plus, Tab Utilities, and other multi-functional tab-related extensions might have an option to force links into the same tab. In a brief search, I saw one called TargetKiller that is more focused on this but recent reviews mention conflicts with other extensions. If this is a frequent pain point, you could search further on the add-ons site.

Let us know the progress of your search.

Another possibility is to solicit someone to write a userscript. A userscript is a JavaScript add-on that can modify web pages, but not the user interface (for example, it cannot add a right-click context menu item). You need the Greasemonkey extension to run userscripts, and you need to evaluate them carefully because they are not formally reviewed by anyone.

You can contact userscript authors through these sites, and if someone is interested, they'll usually write the script for free and post it for everyone's benefit: