Webbläsartillägg för Firefox
  • Tillägg
  • Teman
    • för Firefox
    • Ordlistor & språkpaket
    • Andra webbläsarplatser
    • Tillägg för Android
Logga in
Förhandsvisning av PR Token Diff for GitHub

PR Token Diff for GitHub av Jamison Lahman

Shows the estimated token difference of a GitHub pull request next to GitHub's line-count diffstat.

0 (0 recensioner)0 (0 recensioner)
Hämta Firefox och få tillägget
Hämta fil

Metadata för tillägg

Om detta tillägg
Line counts don't tell you how much LLM context a pull request consumes. This extension adds an estimated token diff wherever GitHub shows its line-count diffstat.

━ What you get
• A header badge on every PR: +12,345 −6,789 tokens, right beside GitHub's own +/− line counts
• Per-file token badges in the Files changed view
• Hover any badge for the exact added/removed estimate

━ How it works
The extension fetches the PR's .diff through your existing GitHub session — no API token, no OAuth, works on private repos you can already see. The unified diff is parsed locally (renames, binaries, and mode changes handled) and token counts are estimated per file, then cached with ETag revalidation so repeat visits are instant.

Counts are a fast heuristic estimate (identifier sub-word splitting blended with a chars-per-token ratio), not an exact BPE tokenization — accurate enough to judge whether a PR fits in a model's context window.

━ Privacy
• No data collection, no analytics, no external services
• Talks only to github.com / patch-diff.githubusercontent.com
• Zero runtime dependencies

Source code: https://github.com/jmelahman/github-token-diff-extension
Betyg 0 av 0 recensenter
Logga in för att betygsätta detta tillägg
Det finns inga betyg än

Stjärnklassificering sparad

5
0
4
0
3
0
2
0
1
0
Inga recensioner ännu
Behörigheter och data

Nödvändiga behörigheter:

  • Åtkomst till dina data för github.com

Valfria behörigheter:

  • Åtkomst till dina data för github.com
  • Åtkomst till dina data för patch-diff.githubusercontent.com

Datainsamling:

  • Utvecklaren säger att detta tillägg inte kräver datainsamling.
Läs mer
Mer information
Länkar för tillägg
  • Hemsida
  • E-post för support
  • Kopiera tilläggs-ID
Version
0.1.4
Storlek
20,05 kB
Senast uppdaterad
för 8 dagar sedan (15 jul 2026)
Relaterade kategorier
  • Webbutveckling
Licens
Endast GNU General Public License v3.0
Versionshistorik
  • Se alla versioner
Lägg till i samling
Rapportera detta tillägg
Gå till Mozillas hemsida

Tillägg

  • Om
  • Firefox tilläggsblogg
  • Verkstad för tillägg
  • Utvecklarcenter
  • Utvecklarpolicyer
  • Community-blogg
  • Forum
  • Rapportera en bugg
  • Recensionsriktlinjer

Ladda ner

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

De senaste versionerna

  • Nightly
  • Beta

Firefox för företag

  • Enterprise

Gemenskap

  • Connect
  • Contribute
  • Developer

Följ

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • Sekretess
  • Kakor
  • Juridisk information

Om inget annat anges, är innehållet på denna webbplats licensierat under licensen Creative Commons Attribution Share-Alike License v3.0 eller senare version.