Disable Refresh on Scroll

Disables pull-to-refresh but allows overscroll glow effects.

当前为 2023-06-27 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Disable Refresh on Scroll
  3. // @description Disables pull-to-refresh but allows overscroll glow effects.
  4. // @author junior1q94
  5. // @match *://*/*
  6. // @version 1.1
  7. // @grant GM_addStyle
  8. // @namespace https://greasyfork.org/users/1113142
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. GM_addStyle(`
  15. html, body {
  16. /* Disables pull-to-refresh but allows overscroll glow effects. */
  17. overscroll-behavior-y: contain;
  18. }
  19. `);
  20. })();