Skip to content

Add settings checkbox(es) for removing context menu items for link and selected text #157

Open

Description

@h-h-h-h

Installing various add-ons can easily clutter up the context menu, even if some items are just present when text is selected.

Please add a checkbox as: [x] Show context menu item for selected text. You can keep the current default.

I think, when the following already present checkbox is checked: [x] Automatically use the text selected on the website, the new checkbox should be disabled and unchecked.

Activity

  1. rugk commented on Jan 8, 2019

    @rugk
    Owner

    You know that one only sees the context menu item if text is selected and/or if you click on a link?

    So it's at least not shown for all cases.
    And thus, IMHO, quite discrete…


    That said, I would be fine with such a checkbox (enabled by default, as you said). (PRs appreciated…)

    I am not fine with automatically disabling/modifying it when another option is changed though. The correlation between the settings may not obvious to the user and there are valid use-cases for having both settings enabled.

  2. shanirub commented on Jul 4, 2019

    @shanirub
    Contributor

    Hi there, I would like to work on this issue.

    The task as i understand it includes the following steps:

    1. Edit options.html, so that the new checkbox will be displayed.
    2. Edit DefaultSettings.js, so that this option will be enabled as default (as rugk requested).
    3. Edit messages.json files for each language (or maybe this should come afterwards, as a different task?).
    4. Edit InitQrCode.js: write the logic behind this option.

    As a beginner i would love to get some feedback:
    Did i forget anything? Any advice?
    Thanks.

  3. rugk commented on Jul 4, 2019

    @rugk
    Owner

    Hi @shanirub ,
    great, yes, feel free to take this issue. 😃

    1. Yep. For help see the module doc for settings: https://github.com/TinyWebEx/AutomaticSettings
    2. Yep, exactly.
    3. When you do this hardly matters, but yes, the new options should be localized. Again module doc: https://github.com/TinyWebEx/Localizer (Of course, you can only translate it for the languages you speak by yourself.)
    4. Well..., no. The real pointer for you would be https://github.com/rugk/offline-qr-code/blob/master/src/background/modules/ContextMenu.js
  4. shanirub commented on Jul 22, 2019

    @shanirub
    Contributor
    • Displaying option as a check box.
      options.html
    • Implementing the logic.
      ContextMenu.js
    • Option should be enabled as default.
      DefaultSettings.js
    • Updating localization.
  5. added
    hacktoberfestHacktoberfest 2020, https://hacktoberfest.digitalocean.com
    on Sep 25, 2019
  6. c3ho commented on Oct 3, 2019

    @c3ho

    Hi, I noticed this hasn't been updated since July 22. May I work on the issue?
    I'm a first time contributor, so please bear with me.

  7. rugk commented on Oct 3, 2019

    @rugk
    Owner

    @shanirub already did some work on this, as it seems. So let's wait for a reply here.
    Having a quick look at the fork, the changes are apparently in the master branch here: https://github.com/shanirub/offline-qr-code/commits/master (not reviewed!)

    So assigning @shanirub for getting a reply whether @c3ho can/should take over this change or not?

  8. shanirub commented on Oct 3, 2019

    @shanirub
    Contributor

    @rugk I would very much like to continue working on this issue.
    @c3ho sorry.

  9. jn64 commented on Oct 31, 2019

    @jn64

    Hope to see this feature, because Firefox default access key for Inspect Element is also Q.

    Alternatively allow changing the access key for this addon to R

  10. rugk commented on Oct 31, 2019

    @rugk
    Owner

    Alternatively allow changing the access key for this addon to R

    For simplicity reasons, we'd only want to have one fixed and value and it should be a word that is included in the context menu text. In any case, however, your underlying issue seems to be valid/a good point, so please open a new issue for that. (As it may be fixed independently to this one, as you've noticed by yourself.)

  11. rugk commented on Oct 31, 2019

    @rugk
    Owner

    @shanirub If you need any pointers/help or have questions, feel free to ask.

  12. removed
    hacktoberfestHacktoberfest 2020, https://hacktoberfest.digitalocean.com
    on Nov 7, 2019
  13. 16 remaining items

  14. starborne-nova commented on Feb 22, 2022

    @starborne-nova

    log2022-2-21_21-46-22.txt

    I've managed to integrate an option for disabling the context menu, however I haven't been able to make the context menu appear at all. Was hoping I could get some help figuring out what I am doing wrong. I've attached the console log from trying to get it to work.

    And here's the changes I've made so far

    https://github.com/starborne-nova/offline-qr-code/commit/c95a4deedb30f8fb0fcd520a37af611b525b6759

  15. rugk commented on Feb 27, 2022

    @rugk
    Owner

    @starborne-nova From having a quick look the code changes all looks fine? Did you make sure to clone the repo with submodules or check them out afterwards?

    In any case, I'd appreciate a PR, so the option can be integrated.

  16. linked a pull request that will close this issueAdd settings checkbox #276on Oct 19, 2022
  17. deepak-158 commented on Oct 12, 2024

    @deepak-158

    \assign

  18. rugk commented on Oct 16, 2024

    @rugk
    Owner

    Okay and thanks @deepak-158, I'll assign you.

    Everyone contributing to this though please take care not to do work that has already be done:

    From previous contributors the PR #257 looks quite far/promising and I've already commented/reviewed missing things there. You can just…

    1. Fork & clone the repo/branch of that contributor…
    2. Synchronize it with my upstream repo here, so the latest changes are in there
    3. and then you have the same codebase as your previous contributor, but with the latest changes from here applied (not much, so much does not change, but it's better to have it)
    4. Then you can get to the code and contribute it as known.

    You may need to change the origin of the branches or so or pull/push it to a different one while doing so, so the changes you want are in there. You can always open a draft PR though to see what's going on.
    If you are unsure and confused by these complicated lingo/wild terms and need to dig into some git knowledge, there are plenty of resources online. https://learngitbranching.js.org/ is e.g. a good interactive guide.

  19. artfulrobot commented on Jun 11, 2026

    @artfulrobot

    Um, I came here to report this problem: the context menu binds to Q, which is already bound to "Inspect" - a feature I rely on heavily in my workflow:

    Image

    Being able to change the bound key, or simply not choosing a key which conflicts with core Firefox in the first place, would be great. However, I'd be happy with disabling it in the context menu, as per this issue, and the merged PR at #336 (comment) suggests that this option should be present, but I'm using v 1.9 and I can't see that option present in the Preferences page.

    So I'm confused.

    TL;DR:

    • a merged PR from 2024 says this issue (from 2019) is implemented; yet this issue is not closed.
    • it's 2026 and I'm not seeing it in v1.7
    • was there a regression? or did the merged PR not do what it said?
    • For what it's worth, I'm in favour of being able to disable the context menu item.
  20. rugk commented on Jun 19, 2026

    @rugk
    Owner

    Yeah sorry, this is fixed in the dev version, (I just merged #358 to fix a subsequent related issue) just not yet released. I'll prepare a release.

  21. rugk commented on Jun 19, 2026

    @rugk
    Owner

    Ah just noticed your screenshot, note though on special elements like links and so on, it is always shown currently. For now, you can just press Q multiple times to choose between the context menu entries.

  22. rugk commented on Jun 19, 2026

    @rugk
    Owner

    So I'll reopen and clarify the issue to be about the other non-generic extensions. It should be an easy addition, if someone wants to add it.

  23. reopened this on Jun 19, 2026
  24. changed the title [-]Add settings checkbox for removing context menu item[/-] [+]Add settings checkbox(es) for removing context menu items for link and selected text[/+] on Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgood first issueGood for newcomershacktoberfestHacktoberfest 2020, https://hacktoberfest.digitalocean.com

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions