I tested browser.tabs.insertRelatedAfterCurrent
in about:config
but this works only for opening new tabs using mouse middle button.
5 Answers
As of Firefox 61 this behavior is available natively:
- Navigate to
about:config
- Find the
browser.tabs.insertAfterCurrent
row - Toggle it to
true
by double-clicking the row
-
2The other answers are outdated, it's unfortunate that this one hasn't yet received any attention (aside from my vote). Jan 22, 2019 at 15:31
-
@user598527 : your comment at the question will solve this issue in a few years Oct 15, 2019 at 9:05
You could try Tab Mix Plus, an add-on I've been using since forever-ish.
https://addons.mozilla.org/en-us/firefox/addon/tab-mix-plus/
Once installed, in the Tab Mix Plus options, Events -> New Tabs -> "Open new tabs next to current one". The option below it, "Open other tabs next to current one", doesn't do exactly what you're looking for.
-
1In fact, I had to uncheck "Only if related to current tab" under checked "Open other tabs next to current one".– AthariJan 29, 2015 at 19:02
Here is a relevant bug report:
Bug 528005 - Provide ways of opening new tabs next to the current tab
Here are some more suggested extensions:
Personally I'm using the second one.
I'm using the Tab Control addon for the similar reason.
https://addons.mozilla.org/en-us/firefox/addon/tab-control/
There is a setting: Position new tabs to right of current tab.
As another answer mentioned, this can be enabled by the browser.tabs.insertAfterCurrent
option in about:config
.
If one wants to sync this setting across devices, one needs to turn on services.sync.prefs.dangerously_allow_arbitrary
. This syncs all custom settings in about:config
. It looks like insertAfterCurrent
does not have a separate services.sync
setting for it, so sync needs to be turned on for all settings.
browser.tabs.insertAfterCurrent
totrue
; see this answer.