As we know, our android/browser can't disable page refresh by swiping from top to bottom. But with the help of this script you can block this annoying function. It's very simple 🙂
and it works, and it's reliable.
// ==UserScript==
// @name Disable Refresh on Scroll
// @description Disables pull-to-refresh but allows overscroll glow effects.
// @author junior1q94
// @match *://*/*
// @version 1.1
// @grant GM_addStyle
// @namespace https://greasyfork.org/users/1113142
// ==/UserScript==
(function() {
'use strict';
GM_addStyle(`
html, body {
/* Disables pull-to-refresh but allows overscroll glow effects. */
overscroll-behavior-y: contain;
}
`);
})();
But on mastodons or html-version DDG this script doesn't work for some reason. I don't know why.
If you use it in combination Kiwi browser + Violent monkey, then pull-to-refresh blocking works everywhere.