GPT-5 Thinking Autoselect

Automatically select GPT-5 Thinking model in new chats.

当前为 2025-10-04 提交的版本,查看 最新版本

// ==UserScript==
// @name         GPT-5 Thinking Autoselect
// @description  Automatically select GPT-5 Thinking model in new chats.
// @version      1.4
// @author       C89sd
// @namespace    https://greasyfork.org/users/1376767
// @match        https://chatgpt.com/*
// @run-at       document-body
// ==/UserScript==

'use strict';

const checkUrl = () => {
  if (location.pathname == '/' && location.search === '') {
    location.search = '?model=gpt-5-thinking';
  }
};

checkUrl();

// Override pushState to detect URL changes in SPA
const originalPushState = history.pushState;
history.pushState = function() {
  originalPushState.apply(this, arguments);
  checkUrl();
};