-
Notifications
You must be signed in to change notification settings - Fork 1
Development Guide
Queen Belle Dela Cruz edited this page Aug 13, 2024
·
10 revisions
- Install dependencies:
npm install
- Make your changes in the code.
- Build and compile extension:
npm run watch
- Reload the extension in Chrome to see the updates.
Chrome DevTools extensions consist of several key components:
- Manifest File: Defines the extension’s permissions, background scripts, and DevTools page.
- DevTools Page: HTML and JavaScript files that create the custom DevTools panel.
- Content Scripts: Scripts that run in the context of the web page being inspected.
- Background Scripts: Handle events and manage the extension's background logic.
MLH.Fellowship.-.24.SUM.A.Rapid.1.mp4
- A script is injected into the inspected page from the panel.
- The injected script will send a message upon first opening the locally deployed version of Rapid and whenever it observes a change in Rapid’s Edit System.
- The extension’s content script has access to the DOM and DOM events, but its window does not point to the inspected page’s window object. It listens for messages from the inspected page.
- The content script passes this message to the service worker, which communicates with the content script and devtools.