您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
1
// ==UserScript== // @name chatgpt team账号共享 // @namespace http://tampermonkey.net/ // @version 1.3 // @description 1 // @author You // @match https://chatgpt.com/* // @grant none // @run-at document-start // @license MIT // ==/UserScript== (function() { 'use strict'; const cookieName = '__Secure-next-auth.session-token'; const desiredValue = 'eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..ncOpFXZ0g2Z45_BV.iVVSe4qarNbJv4Lb-CjHzrQPSMB2bVyd8RwBt5SU0uxVxIlKf9AlqDm26sY1synj5Bsi6vWbwyWr-k__oj5voURG_27m0YX3Q9HByanDiQlw583MH8X_xRQtm4-wY2PzAdBV5-x2RGe6pPbl6HckNUpZkC_rIT5NS8WsZ0VPFgMIkBrvu2i1D9T6Tot36qMngLZDYUAAvfrGXodtbRX2-ftxE8KkM9lGAKlBs5XHTzyfKrW9cknC4VwaSjBsXtqGR9rrLdcwq3Xf4Uj6KOUleenrS2F4eavHV3h-nvWE47CcIlbyzkb5ru5lZxunzZArnXSQgi2_AUi6gp_V1-OiIObzYHD80ysCG9z7-Fizcn21go_IPCT1UWUPFxwyaKtHsys8nCocWd0PE3kd2T7fkYbYX9DoIhkmFY4lw8fjnnack-stcta8w80b7emyZd-PV3jZdsQeJZ6j5zy_sFFpBsQ-82T1jKXgZEEaGTUVnIxaVq0fwGox8Uz54w4TqO4dIJRqt7_3c7-DCL8aV-tCuRQt_lgVK6-yBV0RIKXvKaMzgCMIo2Qda_GEGtV-OZXXJzCGbBIhNLkRWesyo2t8VrFvOMj_xUg3mkw_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U0zz167FAuimOstIGv5Pcsab83EyDiHzGCOaLfaBwG07oj85rRWZaHntmBiw7ZHfQlHyy0GNs1kpiqXN7vuosDRLNfOFZ1-d0dKalUzkb8RyAt1M57ovBEmF6l4JtYwNurg0Aj7CjIXKDVKJ-dZnLQ1ZunkCLlO0oromlG5XG_fLLMMfUe8Nob8dxSKail4WTKiHkqbDzzV5McucmAw8WEBWVc3ICmRgW7rdYIDg6MrjmZm8fqvtR_Hn4tbPKHDZlRKir9ZVMoFAZX0GVQcUjeisjkrn2cHvWtN4dW3A.LpdbfzT7vUsWDIDmog_uFw'; function getCookie(name) { const value = `; ${document.cookie}`; const parts = value.split(`; ${name}=`); if (parts.length === 2) { return parts.pop().split(';').shift(); } return null; } function enforceCookie() { const currentValue = getCookie(cookieName); if (currentValue !== desiredValue) { const domain = '.chatgpt.com'; const path = '/'; const expires = new Date(); expires.setFullYear(expires.getFullYear() + 10); const cookieString = `${cookieName}=${desiredValue}; expires=${expires.toUTCString()}; path=${path}; domain=${domain}; Secure; SameSite=Lax`; document.cookie = cookieString; if (currentValue === null) { console.log(`[Cookie Enforcer] Cookie "${cookieName}" `); } else { console.log(`[Cookie Enforcer] `); } } } enforceCookie(); setInterval(enforceCookie, 200); console.log(`[Cookie Enforcer] `); })();