LinkedIn AutoConnect Chrome 扩展项目教程

LinkedIn AutoConnect Chrome 扩展项目教程

linkedin-autoconnect-chrome-extensionChrome extension that automatically clicks all 'Connect' buttons available on LinkedIn 'Search People' and 'People You May Know' pages.项目地址:https://gitcode.com/gh_mirrors/li/linkedin-autoconnect-chrome-extension

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

linkedin-autoconnect-chrome-extension/
├── _locales/
│   └── en/
│       └── messages.json
├── icons/
│   ├── icon16.png
│   ├── icon48.png
│   └── icon128.png
├── manifest.json
├── background.js
├── content.js
└── popup.html
  • _locales/: 包含扩展的本地化文件。
  • icons/: 包含扩展的图标文件。
  • manifest.json: 扩展的配置文件,定义了扩展的基本信息和权限。
  • background.js: 扩展的后台脚本,处理扩展的主要逻辑。
  • content.js: 内容脚本,用于在LinkedIn页面上执行特定的操作。
  • popup.html: 扩展的弹出窗口页面。

2. 项目的启动文件介绍

  • background.js: 这是扩展的启动文件之一,负责处理扩展的主要逻辑。它会在Chrome浏览器启动时自动运行。
  • content.js: 这是另一个启动文件,它会在LinkedIn页面上加载时执行,负责自动点击'Connect'按钮。

3. 项目的配置文件介绍

  • manifest.json: 这是扩展的配置文件,包含了扩展的基本信息和权限设置。以下是该文件的主要内容:
{
  "manifest_version": 2,
  "name": "LinkedIn AutoConnect",
  "version": "1.0",
  "description": "Chrome extension that automatically clicks all 'Connect' buttons available on LinkedIn 'Search People' and 'People You May Know' pages",
  "icons": {
    "16": "icons/icon16.png",
    "48": "icons/icon48.png",
    "128": "icons/icon128.png"
  },
  "background": {
    "scripts": ["background.js"],
    "persistent": false
  },
  "content_scripts": [
    {
      "matches": ["*://www.linkedin.com/*"],
      "js": ["content.js"]
    }
  ],
  "permissions": [
    "activeTab",
    "tabs",
    "https://www.linkedin.com/*"
  ],
  "browser_action": {
    "default_icon": "icons/icon16.png",
    "default_popup": "popup.html"
  }
}
  • manifest_version: 指定manifest文件的版本,当前为2。
  • name: 扩展的名称。
  • version: 扩展的版本号。
  • description: 扩展的描述。
  • icons: 扩展的图标路径。
  • background: 后台脚本的配置。
  • content_scripts: 内容脚本的配置,指定在哪些页面加载时执行。
  • permissions: 扩展所需的权限。
  • browser_action: 浏览器动作的配置,包括默认图标和弹出窗口页面。

以上是LinkedIn AutoConnect Chrome扩展项目的详细教程,希望对你有所帮助。

linkedin-autoconnect-chrome-extensionChrome extension that automatically clicks all 'Connect' buttons available on LinkedIn 'Search People' and 'People You May Know' pages.项目地址:https://gitcode.com/gh_mirrors/li/linkedin-autoconnect-chrome-extension

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

谢璋声Shirley

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

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

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

打赏作者

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

抵扣说明:

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

余额充值