Migrate to Manifest V3 and Release 2.0.0#7
Open
zackpyle wants to merge 2 commits into
Open
Conversation
### 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
Author
|
@EranSch Let me know your thoughts here! Thanks! |
Author
|
@EranSch Have a few to review this, and publish an update to the extension marketplace? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 update is required to restore functionality and comply with Chrome’s latest extension requirements.
Key Changes
Upgraded to Manifest V3
manifest.jsonto use"manifest_version": 3background.service_worker)browser_actiontoactionCodebase Modernization
chrome.tabs.executeScript→chrome.scripting.executeScript, etc.)Version Bump
2.0.0to reflect the major technical upgrade and restoration of extension functionality for Chrome 138+ usersTesting
chrome://extensions)Notes