This add-on is a response to the change in tab opening behaviour in Firefox 3.5. I prefer my tabs to follow these rules:
- All in-page links open in the same tab regardless of whether target=_blank etc is specified
- All in-page links open relative to (i.e. immediately right of) the current tab
- Opening a new tab or middle clicking the home button or a bookmark opens a new tab at the far right
- All external links (e.g. you click a link in an email) open in a new tab on the far right
- Javascript pop-ups from clicked links still work
This was possible until 3.5, when the browser.link.open_external preference was removed. There have been numerous bug reports (
469082,
477746,
481831) have been made but until now there was no fix.
1. Links on page opened in new tabs will open to the right of the current tab.
2. External links, the new tab button and bookmarks will open to the right of
all tabs.
This add-on is a modified version of
Tabs Open Relative, combined with dikrib's fix for browser.link.open_external.
In order to get the behaviour mentioned above, you need to set some values in about:config.
browser.link.open_newwindow = 1
browser.link.open_external = 3
extensions.tabsopenrelative.linksonly = true
You need to create the last two values as they do not exist by default.
History: | 0.2 Fixed homepage link, tidied code a little. |
| 0.1 First release. |