Skip to content

Migrate extension to Manifest V3 - #13

Open
garfolino wants to merge 1 commit into
juni-vogt:masterfrom
garfolino:claude/update-chrome-extension-M76Nw
Open

Migrate extension to Manifest V3#13
garfolino wants to merge 1 commit into
juni-vogt:masterfrom
garfolino:claude/update-chrome-extension-M76Nw

Conversation

@garfolino

Copy link
Copy Markdown
  • manifest_version: 2 → 3
  • background.scripts → background.service_worker (MV3 requires service workers)
  • browser_action → action (renamed in MV3)
  • browserAction.setBadgeText → action.setBadgeText
  • Replace alert() with chrome.notifications.create() (alert unavailable in service workers)
  • Add notifications permission for the above
  • Fix browser global: chrome || browserglobalThis.browser || chrome
  • Move options.js script tag to end of
  • Bump version to 0.4.0

https://claude.ai/code/session_01YRKVY7sZgEwRGjqKVbf6Jt

- manifest_version: 2 → 3
- background.scripts → background.service_worker (MV3 requires service workers)
- browser_action → action (renamed in MV3)
- browserAction.setBadgeText → action.setBadgeText
- Replace alert() with chrome.notifications.create() (alert unavailable in service workers)
- Add notifications permission for the above
- Fix browser global: `chrome || browser` → `globalThis.browser || chrome`
- Move options.js script tag to end of <body>
- Bump version to 0.4.0

https://claude.ai/code/session_01YRKVY7sZgEwRGjqKVbf6Jt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants