https://github.com/codedrinker/pandora-box
潘多拉工具箱-程序员的宝库
https://github.com/codedrinker/pandora-box
Last synced: 4 days ago
JSON representation
潘多拉工具箱-程序员的宝库
- Host: GitHub
- URL: https://github.com/codedrinker/pandora-box
- Owner: codedrinker
- Created: 2020-08-24T17:15:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-04T17:43:44.000Z (over 4 years ago)
- Last Synced: 2025-04-03T03:06:54.250Z (26 days ago)
- Language: JavaScript
- Size: 119 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 潘多拉盒子
Chrome 插件,一个集成神奇工具的地方## 加载插件
1. 下载代码
`git clone https://github.com/codedrinker/pandora-box.git`
2. 管理插件
`chrome://extensions/`
3. 导入插件
打开`开发者模式`,点击`加载已解压的扩展程序`加载`pandora-box`目录。## 贡献功能
1. 编写代码
在 `/modules` 目录下面创建一个文件夹,比如命名为 `unix-timestamp`,在内部创建 `icon.png` 和 `index.html`。
其中 `icon.png` 为小工具的图标,`index.html` 为小工具的页面。 如下图
```
├── modules
│ └── unix-timestamp
│ ├── icon.png
│ └── index.html
├── modules.json
```2. 配置模块
按照 1 编写完内容以后,在 `modules.json` 里面增加一组配置,用户自动加载到插件的列表页面。
```xml
[
{
"title": "时间戳转换",
"desc": "在线时间戳值转换工具",
"page": "/modules/unix-timestamp/index.html",
"icon": "/modules/unix-timestamp/icon.png"
}
]
```
3. 预览如下
