Open beeirl opened 5 years ago
This seems like a feature request against the DevTools API that we should get routed to the appropriate team (not sure if that is Extension API or DevTools itself.)
I'll ask around and once I know what team this should go to I can give instructions on how to get you there.
In my Google Chrome DevTools Extension I try to listen to the selections in the DevTools panel "Elements". In particular, it should be possible to listen to the selection of the already selected element.
My current implementation method revolves around the function
chrome.devtools.panels.elements.onSelectionChanged
. The function name already suggests that it is only possible to react to elements that are not currently selected. Therefore I tried to reset or remove the current selection with the help variable$0
, to be able to listen to the same element again - unfortunately without success.My goal is to somehow listen to every click/selection in the elements panel. In summary, I am looking for an
onSelection
listener instead of anonSelectonChange
listener.Here's my code I've tried:
I am wondering if there is a way to change the selector programmatically...