Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brenner8023/of-course
基于vue3.x实现的掘金一键三连谷歌插件
https://github.com/brenner8023/of-course
Last synced: 25 days ago
JSON representation
基于vue3.x实现的掘金一键三连谷歌插件
- Host: GitHub
- URL: https://github.com/brenner8023/of-course
- Owner: brenner8023
- Created: 2021-12-02T16:24:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-04T10:32:07.000Z (almost 3 years ago)
- Last Synced: 2024-10-29T23:35:40.025Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# of-course
> 基于 Vue3、TypeScript 实现的掘金一键三连谷歌插件(扩展)
技术栈:
- Vue3.x
- TypeScript
- Vite
- NaiveUI## 介绍
manifest.json
```json
{
"name": "of-course",
"version": "0.1.0",
"manifest_version": 2, // 配置文件的版本
"description": "一键三连,下次一定",
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self';",
"permissions": ["storage", "tabs", "http://*/", "https://*/"],
"background": {
"scripts": ["scripts/background.js"]
},
"browser_action": {},
// 指定多个分辨率图标
"icons": {
"16": "icons/logo-16-disable.png",
"32": "icons/logo-32-disable.png",
"48": "icons/logo-48-disable.png",
"128": "icons/logo-128-disable.png"
},
"content_scripts": [
{
"matches": [""], // 匹配需要注入的页面
"js": ["scripts/content.js"],
"run_at": "document_start",
"all_frames": true
}
],
// 普通页面能够直接访问的插件资源列表
"web_accessible_resources": ["scripts/inject-page.js", "index.html"]
}
```## 参考
- [Chrome 插件(扩展)开发全攻略](https://github.com/sxei/chrome-plugin-demo)