Can this be done? Links in same tab, links from external apps in new tab

I'm trying to figure out a way to achieve this:

1) I want links to open in the same tab. So if I click on a link that has target=_blank or target=_new in my Mozilla Firefox I want them to open in the same tab. Popups I want to open in a new window.

2) I want links from external applications to open in a new tab but same window. So if I click on a link in my mail program I want a new tab to open with the link so that I don't loose data on the current tab.

HOW HOW HOW do I do that?

If I set "browser.link.open_newwindow" to 1 which means "Open links, that would normally open in a new window, in the current tab/window." it fixes problem 1 but not problem 2


September 18, 2009 02:43 PM | Posted in Mozilla

Ads:

Back Next

17 Comments

Not without an extension. Some history and such an addon is available in https://bugzilla.mozilla.org/show_bug.cgi?id=469082

Comment by Jesper Kristensen at September 18, 2009 03:45 PM | Permalink

http://kb.mozillazine.org/Browser.link.open_newwindow.restriction might also come into play here (I think it does if you have target="_blank"... see details for the defaul in FF3.5 Browser.link.open_newwindow.restriction=2)

Comment by Taxexile at September 18, 2009 04:05 PM | Permalink

Why not using Tab Mix Plus?

Site icon Comment by RNiK at September 18, 2009 05:22 PM | Permalink

Why not using Tab Mix Plus extension?

Site icon Comment by RNiK at September 18, 2009 05:23 PM | Permalink

Why not using Tab Mix Plus extension?

Site icon Comment by RNiK at September 18, 2009 05:24 PM | Permalink

Tab Mix Plus can do this, so it's possible.

P.S. I don't see a security code.

Comment by Archaeopteryx at September 18, 2009 05:48 PM | Permalink

You could do that in Firefox 3 but alas it's gone in Firefox 3.5. Very frustrating :(

I don't know if there's an extension to bring that functionality back, but if there is I'd love to know about it!

(see bugs 324164 and 509664)

Site icon Comment by Olly Hodgson at September 18, 2009 06:18 PM | Permalink

You could do that in Firefox 3 but alas it's gone in Firefox 3.5. Very frustrating :(

I don't know if there's an extension to bring that functionality back, but if there is I'd love to know about it!

(see bugs 324164 and 509664)

Site icon Comment by Olly Hodgson at September 18, 2009 06:18 PM | Permalink

You could do that in Firefox 3 but alas it's gone in Firefox 3.5. Very frustrating :(

I don't know if there's an extension to bring that functionality back, but if there is I'd love to know about it!

(see bugs 324164 and 509664)

Site icon Comment by Olly Hodgson at September 18, 2009 06:19 PM | Permalink

Gemal,

I know you're looking at doing this programmatically (i.e. through about:config / userChrome) but this may point you in the right direction.

TabMixPlus has multiple options when it comes to link handling, and there is the ability to set Links from other apps to open in a new tab *and* the ability to open links with a target attribute in the current tab.

Hopefully, by perusing that code you should be able to get it working.

Site icon Comment by John L. Galt at September 18, 2009 09:16 PM | Permalink

Gemal,

I know you're looking at doing this programmatically (i.e. through about:config / userChrome) but this may point you in the right direction.

TabMixPlus has multiple options when it comes to link handling, and there is the ability to set Links from other apps to open in a new tab *and* the ability to open links with a target attribute in the current tab.

Hopefully, by perusing that code you should be able to get it working.

Site icon Comment by John L. Galt at September 18, 2009 09:19 PM | Permalink

Not without an extension. One such can be found at https://bugzilla.mozilla.org/show_bug.cgi?id=469082

Comment by Jesper Kristensen at September 19, 2009 12:46 PM | Permalink

Try Tab Mix Plus. It'll solve your problems!

Comment by Nuss at September 19, 2009 05:34 PM | Permalink

Why don't you just make a simple extension/greasemonkey script/jetpack to remove all target=_blank and target_new attributes when a page loads?

Comment by 3xM at September 20, 2009 10:56 AM | Permalink

If you haven't already tried it, take a look at browser.link.open_external.

Site icon Comment by Krang at September 22, 2009 10:23 PM | Permalink

Oops, I wasn't aware that Firefox had removed that pref in bug 324164 until seeing the other comments. I use SeaMonkey, and it still works there.

Site icon Comment by Krang at October 2, 2009 08:28 AM | Permalink

there is the ability to set Links from other apps to open in a new tab *and* the ability to open links with a target attribute in the current tab

Comment by pandora charms at March 15, 2011 11:13 AM | Permalink

Post a comment




Remember Me?




Please enter the security code you see here

.
You're here: Home - Can this be done? Links in same tab, links from external apps in new tab
Get the Mozilla Firefox browser