To try the thousands of add-ons available here, download Mozilla Firefox, a fast, free way to surf the Web!Close
Welcome to Firefox Add-ons.
Choose from thousands of extra features and styles to make Firefox your own.Close
MRU Tabs 0.1.1-signed No Restart
by Yves Goergen
Alters the Ctrl+Tab hotkeys so that they cycle through all tabs in the order of their activation recency, much like the Alt+Tab hotkey does on the operating system level. When the active tab is closed, the most-recently active tab is selected.
About this Add-on
- Switch through tabs in most-recently-used order with Ctrl+Tab
- Reverse direction with Ctrl+Shift+Tab
- Activates the most-recently-used tab when closing the active tab
Due to missing features in the add-on SDK, this currently only works well for a single browser window. I haven't really tested it with multiple windows but I expect no reasonable behaviour. It's good enough for me because I always keep a single window anyway.
I also noticed that when another tab is selected automatically, the default tab (the one directly right of the previous one) is still selected but then the "correct" tab is selected quickly afterwards. During high system load this may lead to some tab flickering. Also, after restarting Firefox with session restoring, this default selection change leads to loading the tab page even if the user didn't want to select and load it. I assume that the shortly selected tab also receives focus and page visibility events. This could all be resolved by preventing the default tab switch which is not offered by the add-on SDK.
The source code is quite simple and BSD-licensed. You can browse it in the add-on builder if you like. Any coding help is appreciated, this is my first work using the add-on SDK and I'm no Mozilla code expert either.