Skip to content

Can we build Android Extensions that modify the context menu? #473

Answered by Rob--W
madCode asked this question in Platform
Discussion options

You must be logged in to vote

We do not support this API on Firefox for Android.

If we ever decide to support it, then there would be activity at https://bugzilla.mozilla.org/show_bug.cgi?id=1595822

Your currently available option is to use add a browserAction button (or simply called action in MV3) to your extension and use scripting.executeScript + window.getSelection() to get the current text selection (assuming that it is in the top-level document), and then the navigator.clipboard or document.execCommand API to do the actual copy.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Rumyra
Comment options

Answer selected by bsmth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants