您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
当前为
// ==UserScript== // @name Space Bar Scroll Half Page // @namespace https://github.com/chenshengzhi // @version 0.0.1 // @description try to take over the world! // @author You // @match https://*/* // @match http://*/* // @grant none // ==/UserScript== function SBSHP_KeyCheck(key){ // Don't modify text editing if (key.target.nodeName == "INPUT" || key.target.nodeName == "TEXTAREA" || key.target.nodeName == "SELECT") return; if (key.target.hasAttribute("contenteditable") && key.target.getAttribute("contenteditable") == "true") return; // Don't modify certain combinations if (key.ctrlKey || key.altKey || key.metaKey) return; // If it's a space character, kill the event if (key.key == ' '){ key.stopPropagation(); key.preventDefault(); window.content.scrollBy({ top: window.content.innerHeight / 2, left: 0, behavior: "smooth" }); return false; } } // Monitor the keydown event document.addEventListener('keydown', SBSHP_KeyCheck);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址