Auto-fetch K12 Space Script

James has already shared the console method: Outlook邮箱直接加入ChatGPT K12

This post provides a visual script, making it easy to replace the workspace ID and conveniently pull for multiple accounts.

How to use: 1. Install Tampermonkey or another user script plugin, and add the script code below. 2. Open GPT, log in with the corresponding domain account or use the corresponding domain’s workspace ID — it will automatically fetch the invite. If the ID is valid, it will succeed.

The script already includes the Outlook workspace ID, thanks to the share from the community: K12空间id汇总
For Google email workspace IDs, check out this post: K12 team自动拉取(gmail后缀)

Thanks to everyone for your contributions :xhj006:

// ==UserScript==
// @name         ChatGPT Workspace Join Request
// @namespace    https://chatgpt.com/
// @version      4.0.0
// @description  Sub-account automatically fetches the current login account AT from /api/auth/session, then sends a join request (request) or accepts an invitation (accept) to the main account workspace. All you need is the workspace ID, and the UI is editable and can be saved.
// @author       you
// @match        https://chatgpt.com/*
// @run-at       document-idle
// @grant        none
// ==/UserScript==

(function () {
  "use strict";
  // ...script content remains unchanged
})();
26 Likes

Thanks, man.

2 Likes

Sure, sure, there are references. :ac08:

1 Like

Bro, I added the script and now there are refresh and accept buttons. How do I use them?

Love it, gonna give it a try—automatically more human-like!

I had just finished doing 10 of them manually and then saw the script—so impressive, boss!

Here to give feedback—I’ve really stepped on it hard!

3 Likes

Log in to your account, and the page will automatically fetch the data when you refresh.
Check whether the log shows: Success (if not, click the script refresh button and accept again). If it shows success, just click on your account to switch workspaces.

Successfully joined K12

Thanks for the boss’s sharing, I’ll go try it out now.

Already way too strong.

Change the category from Miscellaneous to Tool Enthusiast

Wow, that’s impressive—the script is already out!

Really awesome


Niuladengshange, thanks for sharing—convenient and easy to use :xhj16:

2 Likes

Pedal harder!

Is it not working anymore?

Take a look

You’re awesome, boss! :xhj16:

I don’t think it works. The option is inactive. He cannot be selected.