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.0
// @author       C89sd
// @namespace    https://greasyfork.org/users/1376767
// @match        https://chatgpt.com/
// @run-at       document-start
// ==/UserScript==

'use strict';

const checkUrl = () => {
  if (window.location.search === '') {
    window.location.href = 'https://chatgpt.com/?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();
};