# GitHub 中文化 (繁體) 一份 ScriptCat / Tampermonkey 用的 UserScript,把 GitHub 介面轉成台灣用語的繁體中文,不動使用者內容(檔名、commit 訊息、Issue 標題、程式碼、README)。 > 想快速裝起來用?看 [`QUICKSTART.md`](./QUICKSTART.md) > 想看一路怎麼做出來的?看 [`SUMMARY.md`](./SUMMARY.md) ## 檔案 | 檔案 | 用途 | |---|---| | `github-zh-tw.user.js` | 腳本本體(貼到 ScriptCat / Tampermonkey) | | `README.md` | 參考手冊(本檔)— 功能、架構、規則 | | `QUICKSTART.md` | 安裝與自訂操作指南 | | `SUMMARY.md` | 開發故事線、設計取捨 | ## 功能概覽 | 類別 | 例子 | |---|---| | 導覽列 | `Code` / `Issues` / `Pull requests` / `Actions` / `Security` / `Insights` | | 倉庫側欄 | `About` / `Releases` / `Contributors` / `Sponsor this project` | | Branches 頁 | `Default` / `Active` / `Stale` / `All` / `Behind` / `Ahead` | | Issue / PR 列表 | `Sort by` / `Newest` / `Oldest` / `No results found` | | 數字縮寫 | `62.8k` → `6.3 萬`、`1.2M` → `120 萬`、`7,800` 千分號 | | 相對時間 | `3 days ago` → `3 天前`、`last month` → `上個月` | | 頁尾 / 無障礙 | `Terms` / `Privacy` / `Footer navigation` / `GitHub Homepage` | ## 不翻什麼(刻意) | 內容類別 | 選擇器依據 | |---|---| | 檔名、資料夾名 | `.react-directory-filename-column`、`a[href*="/blob/"]`、`a[href*="/tree/"]` | | Commit 訊息 | `a[href*="/commit/"]`、`[data-testid="latest-commit-details"]` | | Repo 描述 | `.BorderGrid-cell > p`、`.f4.my-3`、`[itemprop="about"]` | | Topic 標籤 | `a.topic-tag`、`.topic-tag-link` | | 使用者 / 組織名 | `a[data-hovercard-type="user"]`、`a[data-hovercard-url*="/users/"]` | | README(渲染後) | `.markdown-body` | | 程式碼檢視 | `.blob-code-inner`、`.highlight`、`.react-code-lines` | | Issue / PR 標題 | `.markdown-title`、`.js-issue-title` | | 搜尋語法(`is:issue state:open`) | `[role="searchbox"]`、`[role="combobox"]`、`.pl-c1` 等 | | Labels | `.IssueLabel`、`.Label` | | 編輯器、程式碼輸入 | ``、`
`、``、`