GitHub Issue Status Highlighter (GraphQL Ultimate)

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

Verze ze dne 06. 03. 2026. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Autor
林弘翰
Hodnocení
0 0 0
Verze
0.3.2
Vytvořeno
06. 03. 2026
Aktualizováno
06. 03. 2026
Size
10,7 KB
Licence
MIT
Spustit na

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 發送請求。