Porting to Webextension - selector on browser.contextMenus

(Dimitre) #1

I would like to create a contextMenu based on selectors, but didn’t found how, or if is it possible at the moment.
In legacy extensions I was able to do with the command:

context: contextMenu.SelectorContext("div._ovg3g"),

And I’ll need a similar feature to be able to port my addons to webextensions.

Thank you

(erosman) #2

There is targetUrlPatterns but I haven’t seen a CSS selector based one.

(Fred Wang) #3

I opened https://bugzilla.mozilla.org/show_bug.cgi?id=1357651

1 Like
(Dimitre) #4

Super. hope they solve it fast.
Sadly they are already promoting addons using webextensions and we still don’t have the ability to port ours.

(Dimitre) #5

still no replacement for the old style selectors?