Skip to content

Instantly share code, notes, and snippets.

@likecyber
Last active June 29, 2026 18:30
Show Gist options
  • Select an option

  • Save likecyber/feb99b311ff012f4c02537f0debc0daa to your computer and use it in GitHub Desktop.

Select an option

Save likecyber/feb99b311ff012f4c02537f0debc0daa to your computer and use it in GitHub Desktop.
ChatGPT Business with "synechronsg" promotion code. (Tax-Free!)
const throwError = (message) => {
alert(message);
throw new Error(message);
};
if (!window.location.href.startsWith('https://chatgpt.com/')) {
throwError('This script must be running on https://chatgpt.com only.');
}
await fetch('https://chatgpt.com/cdn-cgi/trace').then(async (response) => {
if (!(await response.text()).includes('\nloc=SG\n')) {
throwError('Enable Singapore VPN first!');
}
await fetch('https://chatgpt.com/api/auth/session').then(async (response) => {
const accessToken = (await response.json())?.accessToken;
if (!accessToken) {
throwError('Access token not found!');
}
await fetch('https://chatgpt.com/backend-api/payments/checkout', {
method: 'POST',
headers: {
Authorization: `Bearer ${accessToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
plan_name: 'chatgptteamplan',
team_plan_data: {
workspace_name: 'Workspace',
price_interval: 'month',
seat_quantity: 2
},
billing_details: {
country: 'LA',
currency: 'SGD'
},
cancel_url: 'https://chatgpt.com',
promo_code: 'synechronsg',
checkout_ui_mode: 'hosted'
})
}).then(async (response) => {
const url = (await response.json())?.url;
if (!url) {
throwError('Failed to place order!');
}
window.location.href = url;
alert('Disable the VPN now!');
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment