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.
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!