updated to manifest version 3 and added typescript #7
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.
This pull request introduces a comprehensive update to the Chrome extension, migrating it from Manifest V2 to Manifest V3, converting the codebase to TypeScript, and modernizing the build system with Vite. These changes improve performance, security, and developer experience while ensuring compliance with the latest Chrome Web Store requirements. Key updates include a complete overhaul of the extension's architecture, enhanced documentation, and a new testing infrastructure.
Major Migration: Manifest V2 → V3
manifest.json
to Manifest V3, replacing"browser_action"
with"action"
, switching to a service worker for background scripts, and updating the Content Security Policy. Removed the"activeTab"
permission for enhanced security.TypeScript Conversion
src/types/index.ts
for improved type safety. Key files includesrc/background.ts
,src/content-script.ts
, andsrc/popup.ts
. [1] [2] [3]tsconfig.json
file with strict mode enabled and an ES2022 target.Build System Modernization
vite.config.ts
.package.json
with modern dependencies and NPM scripts for development, building, and type-checking.Testing Infrastructure
test-app/
directory with a Node.js server and sample web application for local testing of the extension. [1] [2]Documentation Updates
README.md
andDEVELOPER.md
with updated setup instructions, build commands, and testing guidelines. [1] [2]See changelog.