Thanks to visit codestin.com
Credit goes to github.com

Skip to content

updated to manifest version 3 and added typescript #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 4, 2025

Conversation

recursivesquircle
Copy link
Contributor

@recursivesquircle recursivesquircle commented Jun 16, 2025

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

  • Updated 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

  • Rewrote the extension in TypeScript, adding type definitions in src/types/index.ts for improved type safety. Key files include src/background.ts, src/content-script.ts, and src/popup.ts. [1] [2] [3]
  • Added a tsconfig.json file with strict mode enabled and an ES2022 target.

Build System Modernization

  • Integrated Vite as the build tool with a multi-entry setup, path aliases, and automatic file copying for assets. Configuration is defined in vite.config.ts.
  • Updated package.json with modern dependencies and NPM scripts for development, building, and type-checking.

Testing Infrastructure

  • Introduced a test-app/ directory with a Node.js server and sample web application for local testing of the extension. [1] [2]

Documentation Updates

  • Enhanced README.md and DEVELOPER.md with updated setup instructions, build commands, and testing guidelines. [1] [2]

See changelog.

Copy link
Owner

@phenixcoder phenixcoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@phenixcoder phenixcoder merged commit 54ddd59 into phenixcoder:master Jul 4, 2025
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