Mozilla Support में खोजें

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

Keyboard modifier to NOT open in new tab

  • 4 प्रत्युत्तर
  • 2
  • 1 view
  • के द्वारा अंतिम प्रतियुतर Brodieman

more options

I would like to be able to stop Firefox from opening in a new tab and to open in the current window. Is there a keyboard modifier for that? An extension?

There is a site I frequent that, when I click on a link, it opens in a new tab. While this is great most of the time, on this site for what I am doing I want it to open in the same window

I would like to be able to stop Firefox from opening in a new tab and to open in the current window. Is there a keyboard modifier for that? An extension? There is a site I frequent that, when I click on a link, it opens in a new tab. While this is great most of the time, on this site for what I am doing I want it to open in the same window

All Replies (4)

more options

I worked on this last year, but I haven't tested to make sure this still works. As a global approach that will apply to all sites:

There are two ways that websites commonly direct links to open in a new tab or new window:

  • adding a "target" to the link
  • using a script

You may be able to overcome this normal behavior by changing some settings under the covers.

(1) In a new tab, type or paste about:config and press Enter. Click the button promising to be careful.

(2) In the filter box, type or paste link.o and pause while the list is filtered.

(3) Double click these and set the value as desired (check the names carefully, they are pretty similar):

(A) browser.link.open_newwindow

3 = divert new window to a new tab (default) 2 = allow link to open a new window 1 = force new window into same tab

(B) browser.link.open_newwindow.restriction - for links in Firefox tabs

0 = apply the setting under (A) to ALL new windows (even script windows) 2 = apply the setting under (A) to normal windows, but NOT to script windows with features (default) 1 = override the setting under (A) and always use new windows

(C) browser.link.open_newwindow.override.external - for links in other programs

-1 = apply the setting under (A) to external links (default) 3 = open external links in a new tab in the last active window 2 = open external links in a new window 1 = open external links in the last active tab replacing the current page

Any luck?

If you want a site-specific solution, you'll probably need an add-on, either an extension or a Greasemonkey userscript.

more options

You say that will apply to ALL site? I don't want all sites to do it, I was looking to press CTRL+ALT+CLICK the link or something and do it on a case by case basis.

more options

Some kind of add-on will be needed. I don't know whether there is a specific one, or whether it might be a feature of Tab Mix Plus. You could search around here: https://addons.mozilla.org/firefox/search/?q=link+same+tab

more options

Thanks.

Anyone interested in writing on for me :)

Maybe add a right click option "Open Link in Same Tab"?

Brodieman द्वारा सम्पादित