您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes scrolling when pressing spacebar
- // ==UserScript==
- // @name Anti Spacebar Scroll [Sploop.io, Moomoo.io]
- // @author Murka
- // @description Removes scrolling when pressing spacebar
- // @icon https://i.imgur.com/RigUeNF.png
- // @version 0.2
- // @match *://sploop.io/*
- // @match *://moomoo.io/*
- // @match *://*.moomoo.io/*
- // @run-at document-start
- // @grant none
- // @license MIT
- // @namespace https://greasyfork.org/users/919633
- // ==/UserScript==
- /* jshint esversion:6 */
- /*
- Author: Murka
- Github: https://github.com/Murka007
- Discord: https://discord.gg/sG9cyfGPj5
- Greasyfork: https://greasyfork.org/en/users/919633
- MooMooForge: https://github.com/MooMooForge
- */
- (function() {
- "use strict";
- const log = console.log;
- function isInput() {
- const element = document.activeElement;
- return ["TEXTAREA", "INPUT"].includes(element.tagName);
- }
- window.addEventListener("keydown", function(event) {
- if (event.code === "Space" && !isInput()) {
- event.preventDefault();
- }
- })
- })();