sora 2 advanced bio editor

format your bio :yay:

目前為 2025-10-13 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
alexbadi
評價
0 0 0
版本
1.0.0
建立日期
2025-10-13
更新日期
2025-10-13
尺寸
13.8 KB
授權條款
GPL-3.0
腳本執行於

sora 2 advanced bio editor

Userscript that adds an advanced bio editor modal for Sora 2.

example of a modified profile

follow me on sora!

View the GitHub repo

features

  • modal editor that feels Sora-native
  • saves new lines on Sora's backend
  • handles authentication headers using the app's internal session token via wp modules or by patching fetch. (btw, it never leaves Sora)
  • uses Sora native toasts for success/error

advanced bio editor button

installation

  1. make sure you have a userscript manager in your browser (Tampermonkey, Violentmonkey, Greasemonkey, ...).
  2. open the userscript from this repository or from Greasyfork.
  3. make sure the userscript is enabled and visit https://sora.chatgpt.com/profile.

[!NOTE]
Note: The userscript only matches https://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.

how to use

  1. Open your Sora profile, click the "Advanced bio editor" button (added by the userscript).
  2. Edit your biography in the modal. The textarea uses a monospace font so ASCII art lines align predictably.
  3. To center a selection of lines, select the text in the textarea and click the center icon (looks like three centered lines).
  4. Toggle "Reload after editing" if you want the page to reload automatically after a successful save.
  5. Click "Done" to submit. You should see a toast confirming success or an error message if something goes wrong.

advanced bio editor button

brief explanation of how it works

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.

security & privacy

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)

license

GitHub License

This repository is published under the terms of the GNU General Public License v3 License. See the LICENSE file for details.