GitHub Issue Status Highlighter (GraphQL Ultimate)

Fast status fetching using GraphQL and Tokens, unified box widths, relative time, and optimized performance.

2026/03/06のページです。最新版はこちら

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
林弘翰
評価
0 0 0
バージョン
0.3.1
作成日
2026/03/06
更新日
2026/03/06
大きさ
10.6KB
ライセンス
MIT
対象サイト

GitHub Issue Status Highlighter (GraphQL Batch)

🇺🇸 English | 🇹🇼 繁體中文


English

Replaces standard GitHub status icons with color-coded boxes indicating the relative time of the last activity.

Features

  • Efficient Batching: Processes 25 items per GraphQL request to minimize API calls.
  • Smart Caching: Saves results in local storage for 1 hour to preserve API quota.
  • Visual Activity Indicators:
    • Red: Activity within 3 days.
    • Yellow: Activity within 7 days.
    • Green: Activity older than 7 days.
    • Gray: Closed/completed items (includes 50% row opacity and grayscale).
  • Interactive Data: Boxes display short relative time and tooltips showing the last contributor and full timestamp.

Setup

  1. Manager: Install Tampermonkey or a similar userscript manager.
  2. Token: A GitHub Personal Access Token is required for GraphQL access.
  3. Configuration: Paste the token into the GITHUB_TOKEN variable at the top of the script.
  4. Usage: Automatically active on GitHub issue and pull request lists.

Technical Specifications

  • Navigation Support: Compatible with GitHub Turbo SPA navigation via turbo:render and turbo:load.
  • Dynamic Loading: Uses a 300ms debounced MutationObserver to handle dynamically loaded content.
  • Network: Executes requests via GM_xmlhttpRequest to api.github.com.

繁體中文

將 GitHub 原本的 Issue / PR 狀態圖示替換為顏色方塊,顯示最後活動時間的相對狀態。

功能

  • 高效批次查詢: 每次 GraphQL 請求可處理 25 個項目,以減少 API 呼叫次數。
  • 智慧快取: 將結果儲存在本地儲存(Local Storage)1 小時,以節省 API 配額。
  • 活動狀態顯示:
    • 紅色: 3 天內有活動
    • 黃色: 7 天內有活動
    • 綠色: 超過 7 天未更新
    • 灰色: 已關閉 / 已完成項目(列透明度 50%,並套用灰階效果)
  • 互動資訊: 方塊會顯示簡短的相對時間,滑鼠懸停時顯示最後貢獻者與完整時間戳。

安裝方式

  1. 腳本管理器: 安裝 Tampermonkey 或其他 Userscript 管理工具。
  2. Token: 需要一個 GitHub Personal Access Token 來使用 GraphQL API。
  3. 設定: 將 Token 貼到腳本頂部的 GITHUB_TOKEN 變數中。
  4. 使用方式: 在 GitHub 的 Issue 或 Pull Request 列表頁面會自動啟用。

技術規格

  • 頁面導航支援: 相容 GitHub Turbo SPA 導航 (turbo:render / turbo:load)。
  • 動態內容處理: 使用 300ms 防抖(debounce)的 MutationObserver 來處理動態載入內容。
  • 網路請求: 透過 GM_xmlhttpRequestapi.github.com 發送請求。