Skip to content

这是一个 Chrome 扩展,用于在 GitHub 用户页面显示来自 Excel/CSV 的用户信息(例如姓名、公司、工号)。

Notifications You must be signed in to change notification settings

menogrey/chrome-github-enhancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Profile Enhancer

这是一个 Chrome 扩展,用于在 GitHub 用户页面显示来自 Excel/CSV 的用户信息(例如姓名、公司、工号)。

使用步骤:

  1. 在 Excel 中准备数据列,至少包含一列 username,其他可选列:namecompanyemployee_id(或 id)。
  2. 将 Excel 导出为 CSV(UTF-8)。
  3. 打开 Chrome 扩展管理页面(chrome://extensions/),开启「开发者模式」,点击「加载已解压的扩展」,选择此扩展文件夹 chrome-github-enhancer
  4. 点击浏览器工具栏中的扩展图标,打开弹出页面,上传 CSV 并点击「保存到扩展」。
  5. 打开任意 GitHub 用户主页(例如 https://github.com/username),若该用户在 CSV 中有记录,则会在页面上显示姓名、公司和工号。

注意事项:

  • 当前实现使用 CSV 上传(请从 Excel 导出 CSV),这避免了加载第三方库的问题。
  • CSV 头部不区分大小写,支持 usernameloginuser 作为用户名列名;employee_idid 作为工号列名。
  • 如果需要从 Excel 直接读取(.xlsx),可以在本扩展中引入 SheetJS 等库,但需要把库文件放到扩展目录并调整 popup.html 引入(因扩展内容安全策略 CSP,不允许远程脚本)。

如果需要我帮你:

  • 增加对 .xlsx 的直接解析(我可以把 xlsx.min.js 加入扩展),
  • 或者在仓库中添加打包脚本/图标/更漂亮的 UI。

About

这是一个 Chrome 扩展,用于在 GitHub 用户页面显示来自 Excel/CSV 的用户信息(例如姓名、公司、工号)。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published