Claude Timestamp Revealer

Show timestamps for Claude conversation messages

目前為 2025-08-15 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Wayne L Pendley
評價
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)