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
Ads:
![]() |
![]() |
17 Comments
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 | PermalinkTab 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 | PermalinkYou 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)
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)
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)
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.
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.
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 | PermalinkTry Tab Mix Plus. It'll solve your problems!
Comment by Nuss at September 19, 2009 05:34 PM | PermalinkWhy 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 | PermalinkIf you haven't already tried it, take a look at browser.link.open_external.
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.
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
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