Skip to content

Migrate to Manifest V3 and Release 2.0.0#7

Open
zackpyle wants to merge 2 commits into
EranSch:masterfrom
zackpyle:master
Open

Migrate to Manifest V3 and Release 2.0.0#7
zackpyle wants to merge 2 commits into
EranSch:masterfrom
zackpyle:master

Conversation

@zackpyle

Copy link
Copy Markdown

Description

This PR upgrades the this extension from Manifest V2 to Manifest V3, ensuring continued compatibility with Chrome and compliance with the latest extension standards. This is a major release (2.0.0) as it introduces a technical overhaul to restore functionality in new Chrome versions.


Why this change?

As of Chrome version 138, Google has officially disabled access to this extension (and all Manifest V2 extensions), even if they were previously installed. Users now see:

"This extension is no longer available because it doesn't follow best practices for Chrome extensions."

This update is required to restore functionality and comply with Chrome’s latest extension requirements.


Key Changes

  • Upgraded to Manifest V3

    • Updated manifest.json to use "manifest_version": 3
    • Replaced background scripts with a service worker (background.service_worker)
    • Migrated from browser_action to action
    • Updated permissions and host permissions for V3 compliance
  • Codebase Modernization

    • Replaced deprecated APIs (chrome.tabs.executeScriptchrome.scripting.executeScript, etc.)
    • Updated all icon paths to use absolute paths for compatibility with service workers
    • Commented out all console logging for a cleaner production build
    • Cleaned up and commented JavaScript for readability and maintainability
  • Version Bump

    • Bumped version to 2.0.0 to reflect the major technical upgrade and restoration of extension functionality for Chrome 138+ users

Testing

  • Extension loads and runs as Manifest V3 in Chrome (v138+)
  • Service worker is active (visible in chrome://extensions)
  • All original features (admin bar toggle, icon state, etc.) work as expected
  • No errors or warnings in the service worker console

Notes

  • This release is not backward-compatible with Manifest V2
  • Users must be on a version of Chrome that supports Manifest V3
  • The extension is now future-proof and eligible for re-publishing on the Chrome Web Store

zackpyle added 2 commits July 14, 2025 09:06
### Description

This PR upgrades the this extension from Manifest V2 to Manifest V3, ensuring continued compatibility with Chrome and compliance with the latest extension standards. This is a major release (`2.0.0`) as it introduces a technical overhaul to restore functionality in new Chrome versions.

---

### Why this change?

> **As of Chrome version 138, Google has officially disabled access to this extension (and all Manifest V2 extensions), even if they were previously installed. Users now see:**
>
> _"This extension is no longer available because it doesn't follow best practices for Chrome extensions."_

**This update is required to restore functionality and comply with Chrome’s latest extension requirements.**

---

### Key Changes

- **Upgraded to Manifest V3**
  - Updated `manifest.json` to use `"manifest_version": 3`
  - Replaced background scripts with a service worker (`background.service_worker`)
  - Migrated from `browser_action` to `action`
  - Updated permissions and host permissions for V3 compliance

- **Codebase Modernization**
  - Replaced deprecated APIs (`chrome.tabs.executeScript` → `chrome.scripting.executeScript`, etc.)
  - Updated all icon paths to use absolute paths for compatibility with service workers
  - Commented out all console logging for a cleaner production build
  - Cleaned up and commented JavaScript for readability and maintainability

- **Version Bump**
  - Bumped version to `2.0.0` to reflect the major technical upgrade and restoration of extension functionality for Chrome 138+ users
---

### Testing

- Extension loads and runs as Manifest V3 in Chrome (v138+)
- Service worker is active (visible in `chrome://extensions`)
- All original features (admin bar toggle, icon state, etc.) work as expected
- No errors or warnings in the service worker console

---

### Notes

- This release is not backward-compatible with Manifest V2
- Users must be on a version of Chrome that supports Manifest V3
- The extension is now future-proof and eligible for re-publishing on the Chrome Web Store
@zackpyle

Copy link
Copy Markdown
Author

@EranSch Let me know your thoughts here! Thanks!

@zackpyle

Copy link
Copy Markdown
Author

@EranSch Have a few to review this, and publish an update to the extension marketplace?

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.

1 participant