Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pnpm test:coverage # run with v8 coverage report (coverage/index.html)
regressions**, meant to be ratcheted up — not a target to pad. They only
apply under `--coverage`, so plain `pnpm test` (CI) is unaffected.
- Prefer tests that assert observable behavior over ones that merely execute
code for coverage. Coverage proves code *ran*, not that it was *verified*.
code for coverage. Coverage proves code _ran_, not that it was _verified_.

## Performance

Expand All @@ -48,9 +48,6 @@ it competes with GitHub's rendering for the same main thread and network.
- **Fetch lazily, scoped to what's visible.** Never eagerly pull a whole dataset
when the user can only see a fraction of it. Fetch per visible item, and only
when it's actually on screen (or on expand) — not the entire history up front.
Example: release download counts are fetched per visible release tag, not by
pulling the full release history. (This was originally written the eager way
and had to be fixed — see commit `perf: fetch release downloads lazily`.)
- **Debounce and scope DOM observers.** A `MutationObserver` on
`document.body` fires constantly. Coalesce bursts into one pass per frame with
`requestAnimationFrame` (see `pr-collapse-expand.ts`), or scope the work to
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ Every feature can be individually toggled on or off in the settings.

All features except Recent Commit Message Color can be individually toggled on/off in the extension options.

## Removed Features

- **Release Asset Downloads** — Removed after GitHub updated the Releases page to show release asset download counts natively. Discovered on 2026-07-01.

## Build from Source

1. Clone the repo and build:
Expand Down
4 changes: 4 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ Better GitHub 是一个增强 GitHub 使用体验的 Chrome 插件,灵感源

除"最近提交 Commit Message 颜色"外,所有功能均可在扩展选项中单独开关。

## 已删除功能

- **Release 资源下载量** — 已删除。2026 年 7 月 1 日发现 GitHub 官方更新了 Release 页面,已原生支持显示 release asset 下载量。

## 自行打包安装

1. 克隆仓库并构建:
Expand Down
8 changes: 0 additions & 8 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@
"featReleaseTabDesc": {
"message": "Add a Releases tab to the repository navigation bar for quick access."
},
"featReleaseDownloadsName": { "message": "Release Asset Downloads" },
"featReleaseDownloadsDesc": {
"message": "Show how many times each release asset has been downloaded on the Releases page."
},
"featWatchForkStarName": { "message": "Watch/Fork/Star Popup" },
"featWatchForkStarDesc": {
"message": "Hover over Watch, Fork, or Star counts to preview the list in a popup."
Expand Down Expand Up @@ -146,10 +142,6 @@
"message": "Tag: $name$",
"placeholders": { "name": { "content": "$1", "example": "v1.0.0" } }
},
"assetDownloadsTitle": {
"message": "Downloaded $count$ times",
"placeholders": { "count": { "content": "$1", "example": "1,234" } }
},
"copied": { "message": "Copied!" },
"branchCopyTitle": { "message": "Click to copy branch name" },

Expand Down
8 changes: 0 additions & 8 deletions src/_locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@
"featReleaseTabDesc": {
"message": "在仓库导航栏添加一个 Releases 标签页,方便快速访问。"
},
"featReleaseDownloadsName": { "message": "Release 资源下载量" },
"featReleaseDownloadsDesc": {
"message": "在 Releases 页面显示每个资源文件被下载的次数。"
},
"featWatchForkStarName": { "message": "Watch/Fork/Star 弹窗" },
"featWatchForkStarDesc": {
"message": "悬停在 Watch、Fork 或 Star 数字上,即可在弹窗中预览列表。"
Expand Down Expand Up @@ -146,10 +142,6 @@
"message": "Tag: $name$",
"placeholders": { "name": { "content": "$1", "example": "v1.0.0" } }
},
"assetDownloadsTitle": {
"message": "已下载 $count$ 次",
"placeholders": { "count": { "content": "$1", "example": "1,234" } }
},
"copied": { "message": "已复制!" },
"branchCopyTitle": { "message": "点击复制分支名" },

Expand Down
8 changes: 0 additions & 8 deletions src/_locales/zh_TW/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@
"featReleaseTabDesc": {
"message": "在儲存庫導覽列新增一個 Releases 分頁,方便快速存取。"
},
"featReleaseDownloadsName": { "message": "Release 資源下載次數" },
"featReleaseDownloadsDesc": {
"message": "在 Releases 頁面顯示每個資源檔案被下載的次數。"
},
"featWatchForkStarName": { "message": "Watch/Fork/Star 彈出視窗" },
"featWatchForkStarDesc": {
"message": "將游標停在 Watch、Fork 或 Star 數字上,即可在彈出視窗中預覽清單。"
Expand Down Expand Up @@ -146,10 +142,6 @@
"message": "Tag: $name$",
"placeholders": { "name": { "content": "$1", "example": "v1.0.0" } }
},
"assetDownloadsTitle": {
"message": "已下載 $count$ 次",
"placeholders": { "count": { "content": "$1", "example": "1,234" } }
},
"copied": { "message": "已複製!" },
"branchCopyTitle": { "message": "點擊複製分支名稱" },

Expand Down
10 changes: 0 additions & 10 deletions src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import { injectPRBranchNames } from "./features/pr-branch-names";
import { injectPRReviewStatus } from "./features/pr-review-status";
import { injectPRDiffStats } from "./features/pr-diff-stats";
import { injectReleasesTab } from "./features/release-tab";
import {
injectReleaseAssetDownloads,
cleanupReleaseAssetDownloads,
} from "./features/release-asset-downloads";
import { injectPRLabelPosition, cleanupPRLabelPosition } from "./features/pr-label-position";
import { injectFileAgeColor } from "./features/file-age-color";
import { injectPRApproveNow } from "./features/pr-approve-now";
Expand All @@ -29,7 +25,6 @@ const FEATURE_KEYS = [
"feature-pr-review-status",
"feature-pr-diff-stats",
"feature-release-tab",
"feature-release-downloads-count",
"feature-pr-label-position",
"feature-pr-approve-now",
"feature-default-sort",
Expand All @@ -49,7 +44,6 @@ const FEATURE_CLASSES: Record<FeatureKey, string[]> = {
"feature-pr-review-status": ["better-github-review-status"],
"feature-pr-diff-stats": ["better-github-diff-stats", "bg-skeleton-pill--pr-diff"],
"feature-release-tab": ["better-github-releases-tab"],
"feature-release-downloads-count": ["better-github-asset-downloads"],
"feature-pr-label-position": ["better-github-label-prefix"],
"feature-pr-approve-now": ["better-github-approve-now", "better-github-approve-dialog-overlay"],
"feature-default-sort": [],
Expand All @@ -67,7 +61,6 @@ const FEATURE_CLASSES: Record<FeatureKey, string[]> = {
const FEATURE_CLEANUPS: Partial<Record<FeatureKey, () => void>> = {
"feature-pr-label-position": cleanupPRLabelPosition,
"feature-watch-fork-star-popup": cleanupWatchForkStarPopup,
"feature-release-downloads-count": cleanupReleaseAssetDownloads,
"feature-contributor-card": cleanupContributorCard,
};

Expand Down Expand Up @@ -117,9 +110,6 @@ function injectFeature(key: FeatureKey): void {
case "feature-release-tab":
injectReleasesTab();
break;
case "feature-release-downloads-count":
injectReleaseAssetDownloads();
break;
case "feature-pr-label-position":
injectPRLabelPosition();
break;
Expand Down
209 changes: 0 additions & 209 deletions src/features/release-asset-downloads.test.ts

This file was deleted.

Loading