As the title said I’m trying to customize my keyboard shortcuts with autoconfig.js, but I don’t have much experience coding with javascript so I’m a little lost. The autoconfig.js solution was suggested in this thread (https://support.mozilla.org/bm/questions/1381773#answer-1517102), but the example they used was for a different shortcut. Specifically, I’m trying to change the private window shortcut from the default to ctrl + shift + n, but I wasn’t sure how. If anyone could offer some guidance besides third party extensions it would be greatly appreciated 👍
Here’s an example script to reassign Ctrl+Shift+B from back in the day when its function changed: https://www.reddit.com/r/firefox/comments/kilmm2/restore_ctrlshiftb_library_by_setting_configjs/
Hopefully that gives you a framework, and I have a more detailed reference article here using a different example (menu hotkey change, not keyboard shortcut): https://www.userchrome.org/what-is-userchrome-js.html#combinedloader
Why would you want to do that? Control-Shift-N continues to make the most sense for that function. I could understand the objection to Control-Shift-P, but I also don’t know what would be a better shortcut for a new private window.
Sorry, I know this doesn’t help you do the hack you want to do.
Why would you want to do that?
Probably a habit learned in a Chromium-based browser.
I have never tried to do that. I understand there are details at the link below.
https://searchfox.org/mozilla-release/source/browser/base/content/browser-sets.inc