Zotero Google Scholar Citation Count 项目教程
1. 项目的目录结构及介绍
zotero-google-scholar-citation-count/
├── README.md
├── chrome
│ ├── background.js
│ ├── content.js
│ ├── icons
│ │ ├── icon-16.png
│ │ ├── icon-48.png
│ │ └── icon-128.png
│ ├── manifest.json
│ └── options
│ ├── options.html
│ └── options.js
├── firefox
│ ├── background.js
│ ├── content.js
│ ├── icons
│ │ ├── icon-16.png
│ │ ├── icon-48.png
│ │ └── icon-128.png
│ ├── manifest.json
│ └── options
│ ├── options.html
│ └── options.js
└── shared
├── config.js
└── utils.js
目录结构介绍
chrome/
和firefox/
目录分别包含了适用于 Chrome 和 Firefox 浏览器的扩展文件。shared/
目录包含了两个浏览器扩展共享的配置和工具文件。icons/
目录包含了扩展的图标文件。options/
目录包含了扩展的选项页面文件。background.js
是扩展的后台脚本。content.js
是扩展的内容脚本。manifest.json
是扩展的清单文件,定义了扩展的元数据和权限。config.js
和utils.js
是共享的配置和工具文件。
2. 项目的启动文件介绍
Chrome 扩展
- 启动文件:
chrome/manifest.json
- 功能: 该文件定义了 Chrome 扩展的元数据、权限、背景脚本、内容脚本和选项页面。
Firefox 扩展
- 启动文件:
firefox/manifest.json
- 功能: 该文件定义了 Firefox 扩展的元数据、权限、背景脚本、内容脚本和选项页面。
3. 项目的配置文件介绍
共享配置文件
- 文件名:
shared/config.js
- 功能: 该文件包含了扩展的共享配置,如 API 地址、默认设置等。
工具文件
- 文件名:
shared/utils.js
- 功能: 该文件包含了扩展的共享工具函数,如数据处理、API 请求等。
通过以上介绍,您可以更好地理解和使用 zotero-google-scholar-citation-count
项目。