ChatGPT Codex Usage Background Sync Widget

Load Codex analytics in a hidden iframe and show compact draggable 5h/weekly usage on any chatgpt.com page.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

نووسەر
zeigo takashiro
Daily installs
0
Total installs
1
Ratings
0 0 0
وەشان
0.6.1
Created
2026-04-18
Updated
2026-04-18
Size
17.4 KB
مۆڵەت
MIT
Applies to

ChatGPT Codex Usage Background Sync Widget

在任意 chatgpt.com 页面显示 Codex 用量的小组件。
A compact widget that shows Codex usage on any chatgpt.com page.

功能 Features

  • 显示 5 小时每周 用量
    Show 5-hour and weekly usage
  • 默认迷你模式
    Compact mode by default
  • 支持展开查看详细信息
    Expand for detailed info
  • 支持拖动位置
    Draggable widget
  • 自动记住位置和展开状态
    Remembers position and expanded state
  • 无需手动打开 analytics 页面
    Works without manually opening the analytics page

工作方式 How it works

脚本会在后台用隐藏 iframe 加载 Codex analytics 页面,并读取页面中已经显示的用量信息。
The script loads the Codex analytics page in a hidden iframe and reads the usage information already shown on that page.

不会直接调用私有 API
It does not directly call private APIs.

安装 Installation

  1. 安装 Tampermonkey
    Install Tampermonkey
  2. 新建用户脚本
    Create a new userscript
  3. 粘贴脚本并保存
    Paste the script and save
  4. 打开任意 https://chatgpt.com/* 页面
    Open any https://chatgpt.com/* page

使用 Usage

  • 默认显示迷你信息:5h xx% | W xx%
    Default compact display: 5h xx% | W xx%
  • 点击 Expand 查看详细信息
    Click Expand for details
  • 拖动顶部栏移动小组件
    Drag the top bar to move the widget
  • 点击 Refresh 手动刷新
    Click Refresh to update manually

说明 Notes

  • 需要已登录 ChatGPT
    Requires a logged-in ChatGPT session
  • 依赖当前 Codex analytics 页面的结构
    Depends on the current Codex analytics page structure
  • 如果页面结构变化,脚本可能需要更新
    If the page structure changes, the script may need updates

免责声明 Disclaimer

这是一个非官方脚本,与 OpenAI 无关。
This is an unofficial script and is not affiliated with OpenAI.

License

MIT