Add context menu to bookmarks menu

I am trying to add a context menu item to Firefox bookmarks menu (using WebExtension). I read the contextMenus.create () article and this example works for me.

There are a bunch of context types , but none works in the bookmark menu. It's impossible?

+3


source to share


1 answer


In WebExtension, what you want is not yet possible. In general, if there are features you desire in WebExtensions that don't already exist, you can:

  • Improvement request file (error) with a feature request. In case of adding an item to the bookmark context menu, this error already exists: Bug 1370499: Consider support for bookmark context menus . The general direction of this tracking error is that adding an entry to the bookmark's context menu will be implemented at some point in time.

  • Create WebExtension Experiment : You can create a WebExtension Experiment to implement functionality. If you are creating a WebExtension experiment, you can request its integration into Firefox (which may or may not happen). Having an experiment in the WebExtension will make it more likely that something in line with what you want is implemented because it reduces the Mozilla development time it takes to do so. Since WebExtension Experiments are actually legacy add-ons, they will not be able to function in Firefox as of Release Firefox 57 (2017-11-14).

    WebExtension experimentation support (and legacy add-ons in general) is disabled by default in Firefox Nightly. However, in night mode, you can enable a preference about:config

    , extensions.legacy.enabled

    which allows legacy extensions, including WebExtension Experiments, to be used. This is expected to be true in the Developer Edition as well, but not confirmed. WebExtension experiments and legacy add-ons will certainly not work in Release Firefox 57.



One thing that can improve the ability to add some functionality to Firefox is to see what's possible in Chrome extensions. If there is a Chrome Extension API that exactly matches what you want, then Mozilla is more likely to implement it.

Unfortunately, there is a huge amount of functionality in other types of extensions, which is not possible in WebExtensions (at least not currently and almost all of them permanently), but it is possible that any particular functionality could be implemented. Some things that were not originally supported were implemented, at least to a limited extent (for example, Sidebars ).

+3


source







All Articles