ChatGPT Disable Autofocus

Completely block all programmatic autofocus on chatgpt.com

  1. // ==UserScript==
  2. // @name ChatGPT Disable Autofocus
  3. // @description Completely block all programmatic autofocus on chatgpt.com
  4. // @match https://chatgpt.com/*
  5. // @run-at document-start
  6. // @version 0.0.1.20250512172411
  7. // @namespace https://greasyfork.org/users/1435046
  8. // ==/UserScript==
  9.  
  10. (function() {
  11. 'use strict';
  12.  
  13. // block all programmatic focus
  14. HTMLElement.prototype.focus = function() {
  15. // no-op
  16. };
  17.  
  18. // block all programmatic scrollIntoView
  19. Element.prototype.scrollIntoView = function() {
  20. // no-op
  21. };
  22. })();