This commit is contained in:
zhu
2026-04-30 10:55:03 +08:00
commit 48ce6a8b0b
27 changed files with 2970 additions and 0 deletions

30
manifest.config.ts Normal file
View File

@@ -0,0 +1,30 @@
import { defineManifest } from '@crxjs/vite-plugin';
import pkg from './package.json';
export default defineManifest({
manifest_version: 3,
name: pkg.name,
version: pkg.version,
icons: {
48: 'public/logo.png',
},
action: {
default_icon: {
48: 'public/logo.png',
},
default_popup: 'src/popup/index.html',
},
options_page: 'src/options/index.html',
content_scripts: [
{
js: ['src/content/main.ts'],
matches: ['https://*/*', 'http://*/*'],
},
],
host_permissions: ['https://*/*', 'http://*/*'],
permissions: ['storage', 'tabs', 'scripting', 'activeTab', 'windows'],
background: {
service_worker: 'src/background/index.ts',
type: 'module',
},
});