2024-09-14
This post focuses on practical development experience. The content is still rough and needs further refinement.
References:
https://developer.chrome.com/docs/extensions/get-started (Official tutorial)
https://github.com/sxei/chrome-plugin-demo
https://www.pipipi.net/24804.html
Methods investigated: background module (Chrome Extension module), Message Passing API (Chrome Extension API), Broadcast Channel (pub-sub pattern), SharedWorker API (shared background thread across tabs), localStorage/sessionStorage (local browser storage).
HelloWorld manifest.json
{ "manifest_version": 3, "name": "Hello Extensions", "description": "Base Level Extension", "version": "1.0", "action": { "default_popup": "hello.html", "default_icon": "hello_extensions.png" } } hello.
read more