this post was submitted on 08 Aug 2023
1 points (100.0% liked)

Firefox

7 readers
25 users here now

The latest news and developments on Firefox and Mozilla, a global non-profit that strives to promote openness, innovation and opportunity on the web.

You can subscribe to this community from any Kbin or Lemmy instance:

Related

Rules

While we are not an official Mozilla community, we have adopted the Mozilla Community Participation Guidelines as far as it can be applied to a bin.

Rules

  1. Always be civil and respectful
    Don't be toxic, hostile, or a troll, especially towards Mozilla employees. This includes gratuitous use of profanity.

  2. Don't be a bigot
    No form of bigotry will be tolerated.

  3. Don't post security compromising suggestions
    If you do, include an obvious and clear warning.

  4. Don't post conspiracy theories
    Especially ones about nefarious intentions or funding. If you're concerned: Ask. Please don’t fuel conspiracy thinking here. Don’t try to spread FUD, especially against reliable privacy-enhancing software. Extraordinary claims require extraordinary evidence. Show credible sources.

  5. Don't accuse others of shilling
    Send honest concerns to the moderators and/or admins, and we will investigate.

  6. Do not remove your help posts after they receive replies
    Half the point of asking questions in a public sub is so that everyone can benefit from the answers—which is impossible if you go deleting everything behind yourself once you've gotten yours.

founded 1 year ago
MODERATORS
 

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 👍

top 4 comments
sorted by: hot top controversial new old
[–] yoasif@fedia.io 1 points 1 year ago (1 children)

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.

[–] jscher2000@fedia.io 1 points 1 year ago

Why would you want to do that?

Probably a habit learned in a Chromium-based browser.

[–] tjn21@fedia.io 1 points 1 year ago

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

[–] jscher2000@fedia.io 1 points 1 year ago

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