Disable Auto-Scroll Functions on AllenAI Playground

Disable JavaScript-triggered scrolling like scrollIntoView on playground.allenai.org

当前为 2025-05-16 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Disable Auto-Scroll Functions on AllenAI Playground
  3. // @description Disable JavaScript-triggered scrolling like scrollIntoView on playground.allenai.org
  4. // @match https://playground.allenai.org/*
  5. // @match https://grok.com/*
  6. // @run-at document-start
  7. // @version 0.0.1.20250516150545
  8. // @namespace https://greasyfork.org/users/1435046
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // Override scroll-related functions to no-ops
  15. Element.prototype.scrollIntoView = function () {};
  16. /*Element.prototype.scrollIntoViewIfNeeded = function () {};
  17. Element.prototype.scrollTo = function () {};
  18. window.scrollTo = function () {};
  19. window.scrollBy = function () {};*/
  20. })();