Greasy Fork

Greasy Fork is available in English.

ChatGPT开启不限次数的GPT4-Mobile

GPT4-Mobile已和GPT4共享3小时25次限制,意味着此脚本已没有意义!!!取自iOS客户端的GPT4模型, 和GPT4一样仅限Plus会员使用

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         ChatGPT开启不限次数的GPT4-Mobile
// @namespace    https://chat.openai.com/
// @description  GPT4-Mobile已和GPT4共享3小时25次限制,意味着此脚本已没有意义!!!取自iOS客户端的GPT4模型, 和GPT4一样仅限Plus会员使用
// @version      0.5
// @match        https://chat.openai.com/*
// @author       braumye
// @grant        unsafeWindow
// @license      GPL-2.0-only
// ==/UserScript==

(function () {
    const originFetch = fetch;
    window.unsafeWindow.fetch = (url, options) => {
        return originFetch(url, options).then(async (response) => {
            if (url.indexOf('/backend-api/models') === -1) {
                return response;
            }
            const responseClone = response.clone();
            let res = await responseClone.json();
            res.models = res.models.map(m => {
                if (m.slug === 'gpt-4-mobile') {
                    m.tags = m.tags.filter(t => {
                        return t !== 'mobile';
                    });
                    res.categories.push({
                        browsing_model: null,
                        category: "gpt_4",
                        code_interpreter_model: null,
                        default_model: "gpt-4-mobile",
                        human_category_name: "GPT-4-Mobile",
                        plugins_model: null,
                        subscription_level: "plus",
                    });
                }
                return m;
            });

            return new Response(JSON.stringify(res), response);
        });
    };
})();