// ==UserScript== // @name 国内GPT4o/GPT4账号切换器-含免费GPT4使用🚀🚀 // @namespace https://afdian.com/a/warmo // @version 2024.61823 // @description 🦄️🦄️免费使用GPT4,内置了超多GPT账号,让每一个在国内免费上使用GPT4/GPT4o模型。通过内置超多账号解决免费OpenAI账号使用4/4o模型次数受限情况。也可进行批量化添加自己的账号,解决目前GPT4o在国内使用和突破限制问题。 // @author @有事可联系V:caicats // @match https://chat.rawchat.cc/login/** // @match https://chat.rawchat.cc/** // @match https://chat.gptdsb.com/login/** // @match https://chat.gptdsb.com/** // @match https://chat.freegpts.org/** // @match https://gpt.github.cn.com/** // @match https://chat.openai.com/** // @match https://chatgpt.com/** // @match https://new.oaifree.com/** // @match https://shared.oaifree.com/** // @icon64 data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAZlBMVEUAAAD///+hoaFoaGhsbGy7u7vd3d2+vr76+vra2tr29va2trYrKyvg4ODs7OxXV1dgYGCtra0xMTGXl5fExMQ6OjqOjo7R0dEVFRWnp6dSUlIiIiIcHBwLCwt4eHhycnKEhIRHR0f14+hfAAADN0lEQVRYhe1WyZajMAyEsMQshgABEwIJ+f+fbC02W0yHnjnNvNYFDFbZKpUlO86v/e/Wpve/8M4TFckwSvI/cx8z11g2/tw9vZKrEIKe159GUkvwipPxVb4eQQzvYV12XX3Y/x6BT5LqUZkgWixEHF/9/hAAeozz0I8nOtzoccDfg8CbaZQrYkOGYUaEFO2RDUTT4MZefjkMpVcQo5/Wr2DSi9/bhlYPhukvZqf41l3hiiFv8xJR2CslIT+XXfc+YapojY60kG1ZA0rknj+lL4YtnGCQ4lbESSczf5R6Ugc5ee4AoL9KAwbwYXDWXJTXhaDhf2L3R44rxzkbgFgHn55Y0JJjzyeONpYLDn4CCPn7A46VaggjwIB6eEltAOConCUAcZVDXBKIHHgbp9IZ4KW0AZj8LAHaQEzaY0lmHk60AXiQ8XYFEDoVrRpXOmSfdQFfbMe7MuTOJMLU6IJqkh7PuTMVrhosAJCp2xrApA6Lk+p4VllMQjsAcNNkpzeQlKkPHhQb0VkAEgO8TSMaVqhMH/EyW57W2R7moNoBCjwDPg1QzM07QAk7o+wUrIcNwAVZ1ktAROE7gBMaEq4kaW8NgHlQOsrULiUoHjGT40PIqngHOIGYzRK22ggJz3TpbrCt7AMU9gPZwc4y5slJC7FO4woAxmcLgMMi0dF1ymSOtnMEYFDczxqtdJRM6HlAbhSvARIqHG+G5BJGqONoK2opooIMLQFaYMvWs0EJruNRV1b8vy+wqDtbEj2caAcQg5NWdIQL6IJPjIGg1gDKhLINARyxed4DpgLFq+vvKoRiEszGWmlCy0OmcyrqSxKr/eaUzFvDGnDWCX2d5zQmNdJsO4xoz8XeyqcpIdRexZ0BBOYl2r2wyHfwB2WFO0zBjS/Zv2Vc8Pey3l3kor0iR65Q+61Vr6GmttNSOtxRf+jgvfnW3eFa4CZ+3fb1k1q1uC0D3GmKC2s5zkxKvieqWbKQPvFpfbRnNF+pYn/+3ny6m0zW+9eYDIMxlQsbvKuO3zfrV5fWKMc4GLu6G+m2KY/fNNnu6/vu2drTv7fFjVuOP3dHy5MolJEqrKfvoPXp57vpr/3r9gUxwiW4OiuC3wAAAABJRU5ErkJggg== // @grant none // @homepageURL https://afdian.com/a/warmo // @supportURL https://afdian.com/a/warmo // @license MIT // ==/UserScript== (function() { 'use strict'; // 初始账号列表 let accounts = JSON.parse(localStorage.getItem('accounts')) || [ {username: 'solovey.yuliya@gmail.com', password: '80979852851y'}, {username: 'mvmadpro@yahoo.com', password: 'Decarlo1$'}, {username: 'schou5892@yahoo.com', password: 'S5861y7362!'}, {username: 'jennacseagle@gmail.com', password: 'Sleehrat01!'}, {username: 'jenna.dargie@gmail.com', password: 'milford136'}, {username: 'jennalb120@gmail.com', password: 'Emmitt13!'}, {username: 'jenniferhillegas@gmail.com', password: 'Racecar24$'}, {username: 'jenniferlynnlong@gmail.com', password: 'Rooney050410!'}, {username: 'jennifer.norman75@yahoo.com', password: 'Jen033630$'}, {username: 'jennifer.polli@gmail.com', password: 'Greggie8$'}, {username: 'jennifer.rose12002@gmail.com', password: 'Cookie12002!'}, {username: 'jennlydia@aol.com', password: 'Dscjlc82!'}, {username: 'jennpecor@gmail.com', password: '1Unioncity'}, {username: 'jennydance1021@gmail.com', password: 'Dancer1021!'}, {username: 'jennyfer_sickler@yahoo.com', password: 'Marley1353!'}, {username: 'jennym826@gmail.com', password: 'ccsjen99'}, {username: 'jensdahl@gmail.com', password: 'Tivoli24'}, {username: 'jentow@gmail.com', password: 'Paramour182'}, {username: 'jeremyhammock1@gmail.com', password: 'Jeremy12345!'}, {username: 'jeremy_doty@hotmail.com', password: 'Jade7711!'}, {username: 'jescobar92@live.com', password: '6120315j'}, {username: 'jessag001@gmail.com', password: '1banana!'}, {username: 'jessamyn.dupree@gmail.com', password: 'Pepper1989!'}, {username: 'jesseleehampton2011@gmail.com', password: 'Sackboy69!'}, {username: 'jessemoyer020@gmail.com', password: 'Steinseal1!'}, {username: 'jessesda@gmail.com', password: 'Sparky23!'}, {username: 'jessesg21@gmail.com', password: 'Qazwsx21!'}, {username: 'jesse_sanchez18@yahoo.com', password: 'Chito1993!'}, {username: 'jessicaem09@gmail.com', password: 'Computer22@'}, {username: 'jessica.horn.16@gmail.com', password: 'tinkerbel01*'}, {username: 'jessicaroseallen15@gmail.com', password: 'Baseball69!'}, {username: 'jessiedipietro@yahoo.com', password: 'Bella18372!'}, {username: 'jesswanko@gmail.com', password: 'Wano5584!'}, {username: 'jessyq17@aol.com', password: 'Jq537797!'}, {username: 'jetson68@hotmail.com', password: 'Whatever2@'}, {username: 'jgadbois@hotmail.com', password: 'October_21!'}, {username: 'jgon13@comcast.net', password: 'Sweet13!'}, {username: 'jgratzel1@gmail.com', password: 'Hockey2516!'}, {username: 'jgulko@yahoo.com', password: 'Joey3246$'}, {username: 'jhappymomma@aol.com', password: 'Red847!!'}, {username: 'jheb116@yahoo.com', password: 'Poopoo90!'}, {username: 'jhlloyddesign@comcast.net', password: 'r0ck3tm4n'}, {username: 'jhonfarrada@gmail.com', password: 'Telmotin0102!'}, {username: 'jhpsweep@yahoo.com', password: 'Preston1!'}, {username: 'jhremi@aol.com', password: 'havefaith777'}, {username: 'jhvicto2@gmail.com', password: 'C@seydog1'}, {username: 'jia1jin4@hotmail.com', password: 'Password1'}, {username: 'jillcbayer@gmail.com', password: 'Weinerdog1'}, {username: 'jillianmarie20@gmail.com', password: 'Volleyball9!'}, {username: 'jim.carlisle@dinsmore.com', password: 'Alexaerin1!'}, {username: 'jim.lyons@gmail.com', password: 'South099!'}, {username: 'jimmyacamp3@gmail.com', password: 'Erndhx09!'}, {username: 'jimster321@hotmail.com', password: 'Google321!'}, {username: 'jimw@thewassgroup.com', password: 'Jimmy@43209'}, {username: 'jjangeloni@gmail.com', password: 'Angeloni$1'}, {username: 'jjparrino@gmail.com', password: 'Jan241998!'}, {username: 'jjstieneker@gmail.com', password: 'Antwaan82!'}, {username: 'jkimia@me.com', password: 'Jk2094!!'}, {username: 'eggyshabani@gmail.com', password: '@Turbo123'}, {username: 'amandam.davis@yahoo.com', password: 'Cheddar9!'}, {username: 'quinn.taber@gmail.com', password: 'Vote4Pedro@'}, {username: 'attardi.emily@gmail.com', password: 'softwash'}, {username: 'debbinbq@gmail.com', password: 'Debbinbq21'}, {username: 'barbara.schroll@gmail.com', password: '12wasser'}, {username: 'patrickminson@gmail.com', password: 'Eagles814*'}, {username: 'vinusha_27@hotmail.com', password: 'Vg273107'}, {username: 'madisonlouderman@gmail.com', password: 'Taylor111!'}, {username: 'jkirlew@yahoo.com', password: 'Jok0596#'}, {username: 'jkluzzo@gmail.com', password: 'Jkl2385.'}, {username: 'jky222@gmail.com', password: 'Jymcp2009$'}, {username: 'jlanzi226@gmail.com', password: 'Lasagna11!'}, {username: 'jlichter23@gmail.com', password: 'Brettfavre4!'}, {username: 'jlipson1@gmail.com', password: 'dcL1986!'}, {username: 'jlocascio@supreme1.com', password: 'Elijahb1!'}, {username: 'jmanbobi@yahoo.com', password: '@JManbobi123'}, {username: 'jmaynez14@gmail.com', password: 'Babes101!'}, {username: 'jmcarvalho2712@gmail.com', password: '!Jess2712'}, {username: 'jmdasher629@gmail.com', password: 'Longword1'}, {username: 'dwintman@gmail.com', password: 'Leelafry123!'}, {username: 'duds@yahoo.com', password: 'Spunkda1!'}, {username: 'ecaceresims@gmail.com', password: 'Mexico22!'}, {username: 'egmatt@gmail.com', password: 'Peach87!'}, {username: 'jmellsworth@hotmail.com', password: '#Nickel01'}, {username: 'jmiller22@gmail.com', password: 'Vbcrlf22'}, {username: 'jminera97@gmail.com', password: 'Ilovebarca10'}, {username: 'Jmjhbloo@gmail.com', password: 'Jtb999123'}, {username: 'rysiggy@gmail.com', password: 'Gu1tarw1zard!'}, {username: 'seabournn@yahoo.com', password: '432Midland'} // 添加更多账号 ]; // 获取当前账号索引 let currentAccountIndex = parseInt(localStorage.getItem('currentAccountIndex') || '0', 10); function fillCredentials(account) { // 输入用户名和密码 document.querySelector('input[name="username"]').value = account.username; document.querySelector('input[name="password"]').value = account.password; document.querySelector('input[name="password"]').dispatchEvent(new Event('input', { bubbles: true })); // 触发事件确保密码框填入 // 模拟按下Enter键以实现自动登录 document.querySelector('input[name="password"]').dispatchEvent(new KeyboardEvent('keydown', {key: 'Enter', bubbles: true})); } function switchAccount() { currentAccountIndex++; if (currentAccountIndex >= accounts.length) { currentAccountIndex = 0; // 循环使用账号 } localStorage.setItem('currentAccountIndex', currentAccountIndex); fillCredentials(accounts[currentAccountIndex]); } function addSwitchButton() { const button = document.createElement('button'); button.innerText = '切换账号'; button.style.position = 'fixed'; button.style.top = '10px'; button.style.right = '10px'; button.style.zIndex = 1000; button.addEventListener('click', handleButtonClick); document.body.appendChild(button); } function addAccountButton() { const button = document.createElement('button'); button.innerText = '添加账号'; button.style.position = 'fixed'; button.style.top = '50px'; button.style.right = '10px'; button.style.zIndex = 1000; button.addEventListener('click', showAddAccountForm); document.body.appendChild(button); } function showAddAccountForm() { const form = document.createElement('div'); form.style.position = 'fixed'; form.style.top = '100px'; form.style.right = '10px'; form.style.padding = '20px'; form.style.backgroundColor = 'white'; form.style.border = '1px solid black'; form.style.zIndex = 1000; const usernameLabel = document.createElement('label'); usernameLabel.innerText = '账号: '; const usernameInput = document.createElement('input'); usernameInput.type = 'text'; const passwordLabel = document.createElement('label'); passwordLabel.innerText = '密码: '; const passwordInput = document.createElement('input'); passwordInput.type = 'password'; const saveButton = document.createElement('button'); saveButton.innerText = '保存'; saveButton.addEventListener('click', () => { const newAccount = { username: usernameInput.value, password: passwordInput.value }; accounts.push(newAccount); localStorage.setItem('accounts', JSON.stringify(accounts)); document.body.removeChild(form); }); form.appendChild(usernameLabel); form.appendChild(usernameInput); form.appendChild(document.createElement('br')); form.appendChild(passwordLabel); form.appendChild(passwordInput); form.appendChild(document.createElement('br')); form.appendChild(saveButton); document.body.appendChild(form); } function handleButtonClick() { const currentURL = window.location.href; if (currentURL.includes('https://chat.rawchat.cc/login')) { switchAccount(); } else if (currentURL === 'https://chat.rawchat.cc/') { currentAccountIndex++; if (currentAccountIndex >= accounts.length) { currentAccountIndex = 0; // 循环使用账号 } localStorage.setItem('currentAccountIndex', currentAccountIndex); window.open('https://chat.rawchat.cc/login', '_blank'); } } function addLibraryButton() { const button = document.createElement('button'); button.innerText = '付费版系统'; button.style.position = 'fixed'; button.style.top = '90px'; button.style.right = '10px'; button.style.zIndex = 1000; button.style.backgroundColor = 'red'; button.style.color = 'white'; button.addEventListener('click', () => { window.location.href = 'https://afdian.com/a/warmo'; }); document.body.appendChild(button); } function addGuideButton() { const button = document.createElement('button'); button.innerText = '使用指南'; button.style.position = 'fixed'; button.style.top = '130px'; button.style.right = '10px'; button.style.zIndex = 1000; button.style.backgroundColor = 'blue'; button.style.color = 'white'; button.addEventListener('click', () => { window.location.href = 'https://sourl.cn/Ms57c4'; }); document.body.appendChild(button); } window.addEventListener('load', () => { const currentURL = window.location.href; if (currentURL.includes('https://chat.rawchat.cc/login')) { fillCredentials(accounts[currentAccountIndex]); } addSwitchButton(); addAccountButton(); addLibraryButton(); addGuideButton(); }); })();