This is a template for a browser extension. It is a simple extension that demonstrates:
- Send a request from the popup to the content script to return the current text
- Passing data to the popup when the selected text changes on the page
- Intercepting a request from the content script in the background script
- Open a popup in the side bar when the extension icon is clicked.
- Clone the repository
- Open the browser and navigate to
chrome://extensions/ - Enable developer mode
- Click on
Load unpackedand select the cloned repository - Click on the extension icon in the browser toolbar to open the popup
- Select some text on the page to see the selected text in the popup
- Click the popup button to send a request to the content script to return the current content of the entire page
- Update the
manifest.jsonfile with the appropriate details - Zip the contents of the repository
- Go to the Chrome Web Store Developer Dashboard
- Click on
Add new item - Upload the zip file
- Add the necessary details and click on
Publish
