Claude Timestamp Revealer

Show timestamps for Claude conversation messages

作者
Wayne L Pendley
日安装量
0
总安装量
2
评分
0 0 0
版本
3.0
创建于
2025-08-14
更新于
2025-08-15
大小
7.4 KB
许可证
MIT
适用于

Claude Timestamp Revealer for the tampermonkey.com extension to a web browser

Ver 3.0 | 2025-08-14

By baseline Claude Sonnet 4, enhanced by baseline ChatGPT-5, debugged by Wayne L. "Grasshopper" Pendley's "Syntactico" pesona, who is sourced by ChatGPT-4o

What the script does:

  • Adds permanent timestamps to every message in Anthropic Claude conversations (Sonnet and Opus)
  • Formats timestamps as UTC Coordinated Universal Time, e.g., "2025-08-14 16:40:43"
  • No hovering required - timestamps are always visible
  • Uses a readable 15px font size
  • Works automatically as you chat

Key benefits:

  • Track conversation timing for reference
  • See exactly when messages were sent/received
  • Timestamps become part of your chat history
  • Clean integration that looks native to Claude's interface

This addresses a real gap since Claude doesn't show message timestamps by default.


History

Originally authored by Claude Sonnet 4, then enhanced by ChatGPT-5 who hardened fetch handling, expanded React prop key checks, added JSON size guards, prevented overlapping runs, cleaned CSS, built in XHR interception, and wrapped DOM-change triggers in a 250 ms debounce for smoother performance. ChatGPT-5 also handled Grasshopper's iterative tweak requests, including making the year display constant, increasing the font size for aged eyes, and changing the font color levels for just a bit more contrast without visual noise.


Key changes in v3.0:
  • Replaced non-matching selector .group\/conversation-turn with working .flex.flex-col.gap-2
  • Corrected user prompt detection by matching [data-testid="user-message"] instead of relying on tagName
  • Eliminated duplicate timestamps by checking for existing .claude-timestamp elements before inserting
  • Standardized timestamp format to UTC: YYYY-MM-DD HH:MM:SS UTC
  • Added debug logging for selector fallback and matching results
  • Ensured timestamps remain consistent through DOM mutations and async network updates (via MutationObserver and fetch interception)