Make sure your extension folder (news-extractor-extension/) contains these files:
- manifest.json
- background.js
- content.js
- news-extractor.html
- news-extractor.js
- news-extractor.css
You may also include icons if desired (icon16.png, icon48.png, icon128.png).
From the root of your workspace, run:
cd news-extractor-extension
zip -r ../news-extractor-extension.zip .This creates news-extractor-extension.zip in your workspace root.
- Go to
chrome://extensions/ - Enable Developer mode (top right)
- Click Load unpacked and select the
news-extractor-extensionfolder- Or click Pack extension and select the folder, then load the generated
.crxfile
- Or click Pack extension and select the folder, then load the generated
- Or drag and drop the
news-extractor-extension.zipinto the page (unzip first if needed)
- Go to
edge://extensions/ - Enable Developer mode
- Click Load unpacked and select the
news-extractor-extensionfolder
No extra setup is needed. The manifest.json is already configured for Chrome and Edge (Manifest V3).
If you add icons, update the icons section in manifest.json accordingly.
Note: If you update the extension, remove the old version from the browser and repeat the steps above.