Hi guys,
I’m trying to build my first extension and would like to get help on how to get the DOM element we clicked before the context menu show up, SPAN, DIV, …
I have in manifest.json:
"permissions": [
"contextMenus",
"activeTab"
]
And do not anything to exploit inside (background.js)
browser.contextMenus.onClicked.addListener(async (info, tab)