您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
页面顶部下拉自动刷新,排除特定网站
当前为
// ==UserScript== // @name 页面下拉刷新(精简版) // @namespace https://example.com // @version 1.3 // @description 页面顶部下拉自动刷新,排除特定网站 // @match *://*/* // @exclude https://greasyfork.org/* // @grant none // ==/UserScript== (function() { 'use strict'; let startY = 0; const threshold = 100; document.addEventListener('touchstart', e => { if (window.scrollY === 0) startY = e.touches[0].clientY; }); document.addEventListener('touchmove', e => { if (window.scrollY === 0 && e.touches[0].clientY - startY > threshold) { location.reload(); } }); })();