Fix ChatGPT not loading in multiple tabs (due to Performance.measure Error)

Fixes ChatGPT failing to load when you open several tabs. Some sessions crash because of bad `Performance.measure` calls used for analytics. This script safely overrides `Performance.measure`, skipping invalid calls so the site loads normally while leaving your experience unchanged. Fully commented; questions and feedback welcome.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
12centuries
日安装量
0
总安装量
6
评分
0 0 0
版本
0.1
创建于
2025-11-10
更新于
2025-11-10
大小
1.9 KB
许可证
MIT
适用于

Fix ChatGPT not loading in multiple tabs

  • Is your ChatGPT not working?
  • Are you trying to run it in multiple tabs?

This might be the solution you need.

ChatGPT does a lot of internal performance monitoring and analytics functionality on your chat sessions, and if you have multiple browser tabs open, they can sometimes result in errors that prevent the site from working at all.

This script intercepts and neutralizes the problematic Performance.measure call that prevents ChatGPT from opening in multiple tabs. It does this by intercepting calls to `Performance.measure` and making sure that the values used are valid. If not, it simply skips the process. All that is lost is OpenAI's ability to track it's website performance, but it return, you can once again use ChatGPT in multiple tabs. As an end user, you won't notice anything different.

The userscript is fully commented to allow you to understand what is going on. If anything doesn't make sense to you, post a question and I'll be happy to explain in more detail.

While this is not my first userscript, it is my first published userscript, so feedback is always welcome!