您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
山寨自神奇浏览器
当前为
// ==UserScript== // ==UserScript== // @name 边缘下滑刷新 // @namespace https://gf.qytechs.cn/zh-CN/users/954189 // @version 1.0 // @description 山寨自神奇浏览器 // @author angao // @license MIT // @match https://*/* // ==/UserScript== let startY = null; let endY = null; let mark = 0; //记录触摸点的纵坐标 document.addEventListener('touchstart', function(e) { if (e.touches[0].clientX < 30 || e.touches[0].clientX > window.innerWidth - 30) { startY = e.touches[0].clientY; mark = 1; } }); //阻止屏幕滑动 document.addEventListener('touchmove', function(e) { if (mark) { e.preventDefault(); if (e.touches[0].clientY - startY > 120) { window.plugins.toast.showShortBottom('松手刷新'); } } }, { passive: false }); //记录离开点的纵坐标 document.addEventListener('touchend', function(e) { if (startY !== null ) { endY = e.changedTouches[0].clientY; // 向下滑动超过120像素则刷新 if (endY - startY > 120) { location.reload(); } } // 重置 startY = null; endY = null; mark = 0; });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址