马上注册,免费下载更多dz插件网资源。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
发现微软邮件注册完OpenAI账号也没有0元订购 ,一般outlook和gmail这些都不给开的,现在其实是可以后台直接百分百提取0元链接
今天有人问我 ,我感觉很多人不知道我应该让更多人知道,非常简单
直接给代码,我做成了一个书签脚本,保存为书签 ,登录以后点击书签即可:- javascript:(async function (){try {const t=await (await fetch("/api/auth/session")).json();if (!t.accessToken){alert("请先登录 ChatGPT!");return} const p={plan_name:"chatgptteamplan",team_plan_data:{workspace_name:"Fangmu",price_interval:"month",seat_quantity:5},promo_campaign:{promo_campaign_id:"team-1-month-free",is_coupon_from_query_param:!0},checkout_ui_mode:"redirect"};const r=await fetch("https://chatgpt.com/backend-api/payments/checkout",{method:"POST",headers:{Authorization:"Bearer "+t.accessToken,"Content-Type":"application/json"},body:JSON.stringify(p)});const d=await r.json();if (d.url){window.location.href=d.url} else {alert("提取失败:"+(d.detail||JSON.stringify(d)))}} catch (e){alert("发生错误:"+e)}})();
复制代码 如果不会用还有篡改猴的版本,安装油猴插件再导入脚本
油猴版- // ==UserScript==// [url=home.php?mod=space&uid=4014]@name[/url] ChatGPT Team 支付链接提取器// @namespace http://tampermonkey.net/// @version 1.0// @description 提取ChatGPT Team计划的支付跳转链接// @author You// @match https://chatgpt.com/*// @match https://chat.openai.com/*// @grant GM_notification// @grant GM_setClipboard// @run-at document-idle// ==/UserScript==(function() { 'use strict'; // 创建界面元素 function createUI() { const container = document.createElement('div'); container.id = 'team-link-extractor'; container.style.cssText = ` position: fixed; top: 20px; right: 20px; background: white; border: 2px solid #10a37f; border-radius: 10px; padding: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 9999; min-width: 300px; max-width: 400px; font-family: system-ui, -apple-system, sans-serif; `; const title = document.createElement('div'); title.textContent = 'ChatGPT Team 链接提取器'; title.style.cssText = ` font-weight: bold; font-size: 16px; margin-bottom: 10px; color: #10a37f; `; const button = document.createElement('button'); button.id = 'extract-btn'; button.textContent = '提取支付链接'; button.style.cssText = ` background: #10a37f; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 14px; width: 100%; margin-bottom: 15px; transition: background 0.3s; `; button.onmouseover = () => button.style.background = '#0d8c6d'; button.onmouseout = () => button.style.background = '#10a37f'; const resultContainer = document.createElement('div'); resultContainer.id = 'result-container'; resultContainer.style.cssText = ` display: none; margin-top: 10px; `; const resultLabel = document.createElement('div'); resultLabel.textContent = '提取结果:'; resultLabel.style.cssText = ` font-size: 14px; margin-bottom: 5px; color: #666; `; const resultText = document.createElement('div'); resultText.id = 'result-text'; resultText.style.cssText = ` background: #f5f5f5; padding: 10px; border-radius: 5px; font-size: 12px; word-break: break-all; max-height: 100px; overflow-y: auto; border: 1px solid #ddd; `; const copyBtn = document.createElement('button'); copyBtn.id = 'copy-btn'; copyBtn.textContent = '复制链接'; copyBtn.style.cssText = ` background: #4a5568; color: white; border: none; padding: 5px 10px; border-radius: 3px; cursor: pointer; font-size: 12px; margin-top: 5px; display: none; `; const status = document.createElement('div'); status.id = 'status'; status.style.cssText = ` font-size: 12px; margin-top: 5px; color: #666; `; resultContainer.appendChild(resultLabel); resultContainer.appendChild(resultText); resultContainer.appendChild(copyBtn); resultContainer.appendChild(status); container.appendChild(title); container.appendChild(button); container.appendChild(resultContainer); document.body.appendChild(container); // 添加事件监听器 button.addEventListener('click', extractPaymentLink); copyBtn.addEventListener('click', copyToClipboard); } // 提取支付链接 async function extractPaymentLink() { const btn = document.getElementById('extract-btn'); const resultContainer = document.getElementById('result-container'); const resultText = document.getElementById('result-text'); const copyBtn = document.getElementById('copy-btn'); const status = document.getElementById('status'); btn.disabled = true; btn.textContent = '提取中...'; btn.style.background = '#999'; resultText.textContent = ''; copyBtn.style.display = 'none'; status.textContent = ''; try { // 获取 session const sessionResponse = await fetch("/api/auth/session"); const sessionData = await sessionResponse.json(); if (!sessionData.accessToken) { status.textContent = '请先登录ChatGPT!'; status.style.color = '#e53e3e'; resultContainer.style.display = 'block'; return; } // 构建请求参数 const payload = { plan_name: "chatgptteamplan", team_plan_data: { workspace_name: "Fangmu", price_interval: "month", seat_quantity: 5 }, promo_campaign: { promo_campaign_id: "team-1-month-free", is_coupon_from_query_param: true }, checkout_ui_mode: "redirect" }; // 发送请求 const response = await fetch("https://chatgpt.com/backend-api/payments/checkout", { method: "POST", headers: { Authorization: "Bearer " + sessionData.accessToken, "Content-Type": "application/json" }, body: JSON.stringify(payload) }); const data = await response.json(); if (data.url) { resultText.textContent = data.url; resultContainer.style.display = 'block'; copyBtn.style.display = 'inline-block'; status.textContent = '✅ 链接提取成功!'; status.style.color = '#38a169'; // 显示通知 if (typeof GM_notification !== 'undefined') { GM_notification({ text: '支付链接已成功提取', title: 'ChatGPT Team 链接提取器', timeout: 3000 }); } } else { resultText.textContent = JSON.stringify(data, null, 2); resultContainer.style.display = 'block'; status.textContent = '❌ 提取失败:' + (data.detail || '未知错误'); status.style.color = '#e53e3e'; } } catch (error) { resultText.textContent = error.toString(); resultContainer.style.display = 'block'; status.textContent = '❌ 发生错误'; status.style.color = '#e53e3e'; console.error('提取错误:', error); } finally { btn.disabled = false; btn.textContent = '提取支付链接'; btn.style.background = '#10a37f'; } } // 复制到剪贴板 async function copyToClipboard() { const resultText = document.getElementById('result-text'); const status = document.getElementById('status'); try { if (typeof GM_setClipboard !== 'undefined') { await GM_setClipboard(resultText.textContent, 'text'); } else { // 备用方法 const textArea = document.createElement('textarea'); textArea.value = resultText.textContent; document.body.appendChild(textArea); textArea.select(); document.execCommand('copy'); document.body.removeChild(textArea); } status.textContent = '✅ 链接已复制到剪贴板!'; status.style.color = '#38a169'; setTimeout(() => { status.textContent = ''; }, 2000); } catch (error) { status.textContent = '❌ 复制失败'; status.style.color = '#e53e3e'; } } // 初始化 window.addEventListener('load', function() { setTimeout(createUI, 2000); // 等待页面加载完成 }); // 添加样式 const style = document.createElement('style'); style.textContent = ` #extract-btn:hover { opacity: 0.9; } #copy-btn:hover { opacity: 0.9; } #team-link-extractor { animation: slideIn 0.3s ease-out; } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } `; document.head.appendChild(style);})();
复制代码 收起
希望能给大家提供到帮助~
跳转0元支付 ,支付成功即可
0元购可能存在封号风险,大家请小号新号尝试 ,风险自行承担
PayPal需要改到EEA再订购才有... |
|