Skip to content

Commit 9a5f85a

Browse files
committed
✨ 添加chrome新标签页插件
1 parent 99202e8 commit 9a5f85a

25 files changed

+1368
-0
lines changed

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
3+
}

manifest.json

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"manifest_version": 3,
3+
"name": "Chrome Extension Package",
4+
"version": "1.0",
5+
"description": "chrome浏览器插件包",
6+
"icons": {
7+
"16": "icons/icon.png",
8+
"19": "icons/icon.png",
9+
"38": "icons/icon.png",
10+
"48": "icons/icon.png",
11+
"128": "icons/icon.png"
12+
},
13+
"action": {
14+
"default_title": "chrome浏览器插件包",
15+
"default_icon": "icons/icon.png",
16+
"default_popup": "popup/index.html"
17+
},
18+
"background": {
19+
"service_worker": "background/service-worker.js"
20+
},
21+
"permissions": ["tabs", "storage"],
22+
"content_scripts": [
23+
{
24+
"matches": ["http://127.0.0.1:5500/*"],
25+
"js": ["content/content.js"],
26+
"all_frames": true,
27+
"run_at": "document_end",
28+
"match_about_blank": true
29+
}
30+
],
31+
"chrome_url_overrides": {
32+
"newtab": "newTab/index.html"
33+
},
34+
"options_page": "options/index.html"
35+
}

package.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "testsss",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"vue": "^3.4.19"
13+
},
14+
"devDependencies": {
15+
"@vitejs/plugin-vue": "^5.0.4",
16+
"rimraf": "^5.0.5",
17+
"rollup-plugin-copy": "^3.5.0",
18+
"vite": "^5.1.4"
19+
}
20+
}

0 commit comments

Comments
 (0)