format your bio :yay:
Userscript that adds an advanced bio editor modal for Sora 2.
[!NOTE]
Note: The userscript only matcheshttps://sora.chatgpt.com/profile. If Sora updates the page structure or the internal webpack module IDs change, some fallback behaviors are present but the userscript would need an update.
The userscript attempts to use Sora's internal modules to get the authentication headers. If that fails it falls back to reading the session access token and, if that fails too (lmao), it patches window.fetch to get the Authorization header.
The script POSTs JSON to https://sora.chatgpt.com/backend/project_y/profile/:userId with the { description: "..." } payload and sets oai-device-id and appropriate auth headers.
This script reads session tokens from the page context to perform authenticated requests to update your profile. Do not share the script or any modified version that exfiltrates tokens. Only install scripts from sources you trust and after verifying the code.
Your session token is only sent to Sora. It is used exclusively to authenticate the profile update request and is not transmitted to any other servers or persisted outside your browser session. (line 285)
This repository is published under the terms of the GNU General Public License v3 License. See the LICENSE file for details.