We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Switch between Tabs - Recent Order + Tab Order - Best of Two Worlds

  • 3 个回答
  • 1 人有此问题
  • 8 次查看
  • 最后回复者为 Cartucho

more options

When switching tabs, Firefox allows you two behaviours: Recent Order or Tab Order but you have to choose between them. This is a trick to have THE TWO BEHAVIOURS TOGETHER Catch: AutoHotkey is required.

In Firefox Options/Preferences -> General -> Tabs" mark enable recent order (ticked) Then compile the next script in Autohotkey and keep it running.


  1. if WinActive("ahk_exe firefox.exe")

^Q::Send, ^{TAB} ^Tab::Send, ^{PGDN} +^Tab::Send, ^{PGUP}

  1. if

Now with Ctrl+Tab and Ctrl+Shift+Tab you move right and left between Tabs and with Ctrl+Q you move to last viewed Tab. I choose Q because is next to Tab but you can change it in the second line of the script. Cheers!

When switching tabs, Firefox allows you two behaviours: '''Recent Order''' or '''Tab Order''' but you have to choose between them. This is a trick to have '''THE TWO BEHAVIOURS TOGETHER''' Catch: AutoHotkey is required. In Firefox Options/Preferences -> General -> Tabs" mark enable recent order (ticked) Then compile the next script in Autohotkey and keep it running. ----------------------------------------------- #if WinActive("ahk_exe firefox.exe") ^Q::Send, ^{TAB} ^Tab::Send, ^{PGDN} +^Tab::Send, ^{PGUP} #if ----------------------------------------------- Now with '''Ctrl+Tab''' and '''Ctrl+Shift+Tab''' you move right and left between Tabs and with '''Ctrl+Q''' you move to last viewed Tab. I choose Q because is next to Tab but you can change it in the second line of the script. Cheers!

所有回复 (3)

more options

This forum change some characters of the script... (don't work if copy like that) where says "1." change for the simbol "#"

Maybe some moderator can edit it. Thanks!

more options

If you put a blank space at the beginning of each line, or but <pre> before and </pre> after your code, the forum won't mess with it.

Also, there are add-ons for this. I prefer sequential access as my default, so my add-on allows assigning a keyboard shortcut to switch to the last active tab. It also has drop-down lists, if that would be of interest.

https://addons.mozilla.org/firefox/addon/switch-to-previous-active-tab/

more options

jscher2000 said

If you put a blank space at the beginning of each line, or but <pre> before and </pre> after your code, the forum won't mess with it. Also, there are add-ons for this. I prefer sequential access as my default, so my add-on allows assigning a keyboard shortcut to switch to the last active tab. It also has drop-down lists, if that would be of interest. https://addons.mozilla.org/firefox/addon/switch-to-previous-active-tab/

Thanks! I did not know that extension... I think what is better that way what depend of a external program.

About forum messing with code, thanks for the tip but I can't edit my posts... maybe for next time.