Greasy Fork is available in English.

ChatGPT with Date

显示 ChatGPT 历史对话时间 与 实时对话时间的 Tampermonkey 插件。

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
CoderJiang
1日のインストール数
2
累計インストール数
137
評価
1 2 0
バージョン
2.0.3
作成日
2024/05/02
更新日
2024/08/20
ライセンス
MIT
対象サイト

ChatGPT with Date

Build-passing Version-2.0.3 License-MIT CopyRight-Jiang_Liu

1. Introduction

Sometimes we want to see the timestamp of messages from ChatGPT, but ChatGPT does not have the feature to display message timestamps. This project is developed using Tampermonkey and can be used on browsers that support the Tampermonkey plugin, such as Edge, Chrome, Firefox, Safari, and Opera, to enable the display of timestamps for each message from ChatGPT.

This plugin can not only retrieve historical message timestamps but also obtain the time of new messages in real-time.

Adding timestamp labels during interaction

Accessing the Configuration Interface provides a variety of configuration options.

Basic usage of the configuration panel

If you are familiar with the web trifecta (HTML, CSS, JavaScript), you can highly customize the time style.

Advanced usage of the configuration panel

We will introduce the configurations as shown above and more rules in section two.

2. Detailed Documentation

Please visit the ChatGPT with Date Documentation for detailed configuration instructions and developer documentation.

3. Feedback

If you have any questions or suggestions, feel free to raise them on GitHub Issues or the Script Feedback Section.

4. Future Plans

  • [x] Internationalization: The script supports multiple languages (logs, prompts, etc.).
  • [x] Time Formatting Granular Configuration Panel: Optimizing time format customization features, instead of hard-to-maintain HTML string representations.
  • [x] Time Formatting Elements: Support for more time formatting elements, such as weekdays, months (in English), etc.
  • [x] Time Formatting Rules: Support for more time formatting rules, such as 12-hour and 24-hour formats.
  • [x] Support for Shared Interface: Support for displaying time on the interface of https://chatgpt.com/share/uuid ( i.e., the shared chat interface).
  • [ ] Theme Website: Provide a theme website to showcase user-shared time label themes.
  • [x] Reset Script: Due to crashes caused by applying user input locally, a reset script functionality is provided.
  • [x] Provide More Lifecycle Hooks and Custom Functions: For example, how time elements can be customized for parsing.

5. Open Source License

This project is licensed under the MIT License.

CopyRight © 2024~Present Jiang Liu

X. Changelog

  • v2.0.3 - 2024-08-21 00:45:25

    • Optimization: modify link matching mechanism
  • v2.0.2 - 2024-07-29 02:11:47

    • Optimization: Unified access to resources hosted on GitHub.
    • New Feature: Support for displaying time on shared interfaces.
    • Fix: Improve the grammatical hints of prompt words, and provide both Chinese and English versions.
    • New: Provide English documentation
    • Optimization: provide more menu items for users to view documents, feedback, etc.
  • v2.0.1 - 2024-06-15 16:33:35

    • Fix: Resolved the issue where switching between messages forces the time to update to the current time.
  • v2.0.0 - 2024-06-13 16:58:05

    • Fix: Adapted to the new ChatGPT conversational UI.
    • New Feature: Introduced a new configuration page (due to ChatGPT's lack of support for unsafe-eval).
    • Feature Adjustment: To accommodate the new UI, support for "time badge insertion position" was removed.
  • v1.3.0 - 2024-05-06 19:48:01

    • New Features:
      • Internationalization (i18n) support.
      • Functionality to reset the script.
      • Custom prompts to generate HTML, CSS, and JavaScript code suitable for this plugin.
      • Tutorial access.
      • Ability to collapse and expand the configuration panel.
    • Optimization: Support for customizing the height of the code input box.
  • v1.2.3 - 2024-05-04 20:04:51

    • Fix: Resolved an issue preventing custom user code from running properly.
    • Optimization:
      • Ensured that errors in custom code do not affect the entire script.
      • Adjusted the rendering order to prioritize the most recent messages.
  • v1.2.2 - 2024-05-04 15:24:44

    • Fix: Resolved issues with message ID attribute changes leading to failures in locating target message DOM nodes.
  • v1.2.1 - 2024-05-04 14:33:12

    • Fix: Updated domain names for ChatGPT.
  • v1.2.0 - 2024-05-03 21:26:43

    • Optimizations:
      • Limited the number and total duration of time label renderings to prevent page lag.
      • Set time label rendering functions to execute asynchronously to avoid blocking page rendering.
      • Enhanced Fetch hijacking URL matching rules for accuracy and minimized interference with other requests. Hijacking operations are now performed only when URL matches are confirmed.
      • Replaced cold template HTML strings with direct examples of time formats when selecting templates.
    • New Features:
      • Added more elements for time formats, such as weekdays and months in English.
      • Added more rules for time formatting, such as 12-hour and 24-hour formats.
      • Introduced a code editor and injection system for custom HTML, CSS, and JavaScript styles.
      • Provided lifecycle hook functions window.beforeCreateTimeTag(messageId, timeTagHTML) and window.afterCreateTimeTag(messageId, timeTagNode).
  • v1.1.0 - 2024-05-02 17:50:04

    • New Feature: Added more templates for time formats.