CCFrank4dblp 项目使用文档

CCFrank4dblp 项目使用文档

CCFrank4dblpDisplays the China Computer Federation (CCF) recommended rank of international conferences and journals in the dblp, Google Scholar, Connected Papers and and Web of Science search results.项目地址:https://gitcode.com/gh_mirrors/cc/CCFrank4dblp

1. 项目的目录结构及介绍

CCFrank4dblp 项目的目录结构如下:

CCFrank4dblp/
├── _locales/
│   └── ...
├── css/
│   └── ...
├── data/
│   └── ...
├── icon/
│   └── ...
├── img/
│   └── ...
├── js/
│   └── ...
├── lib/
│   └── ...
├── all-contributorsrc
├── .gitignore
├── LICENSE
├── PrivacyPolicy.md
├── README.md
├── manifest.json
└── script.js

目录介绍

  • _locales/: 存放多语言支持的文件。
  • css/: 存放样式文件。
  • data/: 存放数据文件。
  • icon/: 存放图标文件。
  • img/: 存放图片文件。
  • js/: 存放JavaScript脚本文件。
  • lib/: 存放库文件。
  • all-contributorsrc: 贡献者配置文件。
  • .gitignore: Git忽略文件配置。
  • LICENSE: 项目许可证。
  • PrivacyPolicy.md: 隐私政策文档。
  • README.md: 项目说明文档。
  • manifest.json: 扩展程序的清单文件。
  • script.js: 主要的脚本文件。

2. 项目的启动文件介绍

项目的启动文件主要是 manifest.jsonscript.js

manifest.json

manifest.json 是Chrome扩展程序的清单文件,包含了扩展程序的基本信息和配置。以下是部分内容示例:

{
  "manifest_version": 2,
  "name": "CCFrank",
  "version": "4.4.1",
  "description": "Displays CCF recommended rank of conferences/journals in dblp, Google Scholar, Connected Papers, and Web of Science.",
  "icons": {
    "16": "icon/icon16.png",
    "48": "icon/icon48.png",
    "128": "icon/icon128.png"
  },
  "permissions": [
    "activeTab",
    "webNavigation",
    "storage",
    "https://dblp.org/*",
    "https://scholar.google.com/*",
    "https://www.connectedpapers.com/*",
    "https://www.webofscience.com/*"
  ],
  "background": {
    "scripts": ["js/background.js"],
    "persistent": false
  },
  "content_scripts": [
    {
      "matches": [
        "https://dblp.org/*",
        "https://scholar.google.com/*",
        "https://www.connectedpapers.com/*",
        "https://www.webofscience.com/*"
      ],
      "js": ["js/content.js"]
    }
  ],
  "browser_action": {
    "default_icon": "icon/icon16.png",
    "default_popup": "popup.html"
  }
}

script.js

script.js 是主要的脚本文件,负责处理扩展程序的核心逻辑。以下是部分内容示例:

// 示例代码
document.addEventListener('DOMContentLoaded', function() {
  // 初始化代码
});

3. 项目的配置文件介绍

项目的配置文件主要是 manifest.jsonall-contributorsrc

manifest.json

如上所述,manifest.json 包含了扩展程序的基本信息和配置,如名称、版本、权限、背景脚本、内容脚本等。

all-contributorsrc

all-contributorsrc 是贡献者配置文件,用于记录项目的贡献者信息。以下是部分内容示例:

{
  "projectName": "CCFrank4dblp",
  "projectOwner": "WenyanLiu",
  "repoType": "github",
  "repoHost": "https://github.com",
  "files": ["README.md"],
  "imageSize": 100,
  "commit": false

CCFrank4dblpDisplays the China Computer Federation (CCF) recommended rank of international conferences and journals in the dblp, Google Scholar, Connected Papers and and Web of Science search results.项目地址:https://gitcode.com/gh_mirrors/cc/CCFrank4dblp

  • 10
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

劳妍沛

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值