Ctrl + Shift + A to search tabs on Firefox

· Gist

1 min read Original article ↗

Ctrl + Shift + A to search tabs on Firefox

By default, this opens the addons manager. This configuration will change the behavior to search tabs instead, similar to chromium-based browsers.

Usage

  1. Copy autoconfig.js to defaults\prefs of your installation folder. So the full path of the copied file would look like C:\Program Files\Mozilla Firefox\defaults\pref\autoconfig.js.
  2. Copy firefox.cfg to install folder root. Full path would look like C:\Program Files\Mozilla Firefox\firefox.cfg.
  3. Restart firefox if it was open. Ctrl + Shift + A should now open tab search.

Reference: https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig. Working on Firefox v157, which is the latest stable version at the time of writing.

pref("general.config.filename", "firefox.cfg");
pref("general.config.obscure_value", 0);
pref("general.config.sandbox_enabled", false);
// IMPORTANT: Start your code on the 2nd line
try {
Services.obs.addObserver(win => {
win.addEventListener("keydown", e => {
if (e.ctrlKey && e.shiftKey && !e.altKey && e.code === "KeyA") {
e.preventDefault();
e.stopImmediatePropagation();
if (win.gTabsPanel?.searchTabs) win.gTabsPanel.searchTabs();
else win.gURLBar.search("% ");
}
}, true);
}, "browser-delayed-startup-finished");
} catch (ex) { Cu.reportError(ex); }