Firefox: change/disable default keyboard shortcut configuration

Extensions you can use with Firefox Quantum: Saka Key, Shortkeys

However any extension seems to be limited and does not work in various situations:

  • privileged pages such as https://addons.mozilla.org/
  • new tab page,
  • internal pages such as about:config,about:newtab,about:addons
  • outside of the webpage such as in the url bar/ search bar
  • before the page has finished loading

So from time-to-time your keyboard shortcuts will stop working, and you might run a totally different command that does something bad. Thanks Mozilla.

Credit: the list of limitations was gathered from the project pages of the two extensions.

Complex options requiring coding skills

  • userChrome.js for example the following code to remove the Ctrl+B keybinding. (Credit)
var key = document.getElementById('viewBookmarksSidebarKb');
if (key) key.remove();
  • Write your own js, see code at bottom var _mappings = { (and paste it into [Browser Console] after you launch Firefox)

  • Binary hacking firefox (re-run the hack script after every Firefox upgrade)