mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-23 09:42:49 +02:00
Adds an example for devtools inspector sidebar
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
# devtools-panels
|
||||
|
||||
**Adds a new sidebar to the developer tools inspector.**
|
||||
|
||||
## What it does
|
||||
|
||||
This extension adds a new sidebar to the inspector panel.
|
||||
It displays the properties of the current selected node in the markup view, using
|
||||
`sidebar.setExpression($0)` each time a new node is selected (listener added via
|
||||
`browser.devtools.panels.elements.onSelectionChanged`).
|
||||
|
||||
To learn more about the devtools APIs, see [Extending the developer tools](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Extending_the_developer_tools).
|
||||
Reference in New Issue
Block a user