白嫖GPT网站模型次数、突破4o模型次数限制直接续杯

突破特定网站上面GPT-4o模型次数限制,直接续杯🐎

目前为 2024-11-05 提交的版本。查看 最新版本

// ==UserScript==
// @name         白嫖GPT网站模型次数、突破4o模型次数限制直接续杯
// @namespace    https://afdian.com/a/warmo
// @version      1.0
// @description  突破特定网站上面GPT-4o模型次数限制,直接续杯🐎
// @author       xlike
// @match        https://aichatru.ru/*
// @match        https://gpt4o.so/*
// @match        https://finechat.ai/*
// @icon         https://t1.gstatic.cn/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&size=32&url=https://chatgpt.com
// @grant        none
// @license      MIT
// ==/UserScript==
(function() {
    'use strict';
    // 创建并插入刷新ID按钮
    const button = document.createElement('button');
    button.innerText = '续杯';
    button.style.position = 'fixed';
    button.style.right = '20px';
    button.style.top = '80px';
    button.style.padding = '10px 20px';
    button.style.fontSize = '16px';
    button.style.backgroundColor = '#007bff';
    button.style.color = '#fff';
    button.style.border = 'none';
    button.style.borderRadius = '5px';
    button.style.cursor = 'pointer';
    button.style.boxShadow = '0 4px 8px rgba(0, 0, 0, 0.2)';
    button.style.zIndex = '1000';
    document.body.appendChild(button);
    // 生成与旧值长度相同的随机字符串
    function generateRandomUniqueId(length) {
        return Array(length).fill(0).map(() => Math.random().toString(36).charAt(2)).join('');
    }
    // 删除cookie的方法,只使用cookie名称
function deleteCookie(name) {
    // Set the cookie with the same name and domain, but with an expired date
    document.cookie = `${name}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; domain=aichatru.ru; path=/`;
}

    // 获取cookie的方法
    function getCookie(name) {
        const cookies = document.cookie.split(';').map(cookie => cookie.trim());
        for (const cookie of cookies) {
            const [cookieName, cookieValue] = cookie.split('=');
            if (cookieName === name) {
                return cookieValue;
            }
        }
        return null;
    }
    // 修改uniqueId的方法
    function updateUniqueId() {
        const oldUniqueId = getCookie('uniqueId');
        if (oldUniqueId) {
            deleteCookie('uniqueId'); // 删除旧的uniqueId
            const newUniqueId = generateRandomUniqueId(oldUniqueId.length);
            document.cookie = `uniqueId=${newUniqueId};`; // 设置新的uniqueId
           alert("续杯成功");
        } else {
           alert("续杯失败");
        }
    }
    // 点击按钮时更新uniqueId
    button.addEventListener('click', updateUniqueId);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址