-
Notifications
You must be signed in to change notification settings - Fork 202
Delete per-phase dirs from /devtools-extension/ #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 9 commits
c08796e
a3e3d5d
0635d81
47168ca
5d3704c
5dd49a8
378d047
1a67f59
d141b56
ee741d1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,3 +1,9 @@ | ||||||
| # Create your own DevTools extension | ||||||
| # Custom DevTools extension | ||||||
|
|
||||||
| This is the source code for the tutorial to create a Microsoft Edge extension that extends DevTools. See [Create a DevTools extension, adding a custom tool tab and panel](https://learn.microsoft.com/microsoft-edge/extensions/developer-guide/devtools-extension). | ||||||
| This DevTools Extension sample is a Microsoft Edge extension that adds a **Custom** tool in Microsoft Edge DevTools, including a tab in the **Activity Bar**, and a panel below the tab. | ||||||
mikehoffms marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| * The **Custom** DevTools tool calls the DevTools API to display memory information. | ||||||
|
|
||||||
| * The webpage under inspection, and the **Custom** DevTools tool, send messages back and forth, in two-way communication. | ||||||
|
||||||
| * The webpage under inspection, and the **Custom** DevTools tool, send messages back and forth, in two-way communication. | |
| * The webpage under inspection, and the **Custom** DevTools tool, send messages between each other. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,23 @@ | ||
| { | ||
| "name": "DevTools Sample Extension", | ||
| "description": "A Basic DevTools Extension Interacting with the Inspected Page", | ||
| "name": "Custom DevTools Tool", | ||
| "description": "A DevTools extension interacting with the inspected page", | ||
| "manifest_version": 3, | ||
| "version": "1.0", | ||
| "devtools_page": "devtools.html", | ||
| "content_scripts": [{ | ||
| "matches": [ | ||
| "http://*/*", | ||
| "https://*/*" | ||
| "http://*/*", | ||
| "https://*/*" | ||
| ], | ||
| "run_at": "document_idle", | ||
| "js": [ | ||
| "content_script.js" | ||
| "content_script.js" | ||
| ] | ||
| }], | ||
| "background": { | ||
| "service_worker": "background.js" | ||
| } | ||
| }, | ||
| "permissions": [ | ||
| "system.memory" | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| </head> | ||
| <body> | ||
| <h2>Custom DevTools Tool</h2> | ||
|
|
||
| <h3>Memory</h3> | ||
| <div> | ||
| <b>Available Memory Capacity:</b> <span id="availableMemoryCapacity"></span> | ||
| </div> | ||
| <div> | ||
| <b>Total Memory Capacity:</b> <span id="totalMemoryCapacity"></span> | ||
| </div> | ||
|
|
||
| <h3>Send message from DevTools to inspected page</h3> | ||
| <input type="button" id="sayHello" value="Say Hello"> | ||
|
|
||
| <h3>Send message from inspected page to DevTools</h3> | ||
| <p>Click somewhere in the inspected webpage.</p> | ||
| <div> | ||
| <b>Coordinates:</b> <span id="youClickedOn"></span> | ||
| </div> | ||
|
|
||
| </body> | ||
| </html> |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.