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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
12centuries
今日安裝
0
安裝總數
5
評價
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!