Greasy Fork is available in English.

ChatGPT Disable Autofocus

Completely block all programmatic autofocus on chatgpt.com

// ==UserScript==
// @name         ChatGPT Disable Autofocus
// @description  Completely block all programmatic autofocus on chatgpt.com
// @match        https://chatgpt.com/*
// @run-at       document-start
// @version 0.0.1.20250512172411
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==

(function() {
    'use strict';

    // block all programmatic focus
    HTMLElement.prototype.focus = function() {
        // no-op
    };

    // block all programmatic scrollIntoView
    Element.prototype.scrollIntoView = function() {
        // no-op
    };
})();