devtools elements panel right click
look at the image above. right clicking on any node displays menu of options like 'add attribute' and 'edit attribute' etc...
I want to be able to extend the right click menu to add my custom events. for example, I need to get the xpath of the node. I know I can extend the right click on actual page instead of extending right click on the source of the page.
https://developer.chrome.com/extensions/devtools_panels#type-ElementsPanel API's only supports selection change.