// ==UserScript== // @name Auto Walk[NumPad 1] and Walk+Jump[NumPad 2] Mod For Shell Shockers // @namespace http://tampermonkey.net/ // @version 1.2 // @description Auto Walk and Walk+Jump script triggered by numpad keys (1 and 2), initially disabled. // @match *://algebra.best/* // @match *://algebra.vip/* // @match *://biologyclass.club/* // @match *://deadlyegg.com/* // @match *://deathegg.world/* // @match *://eggcombat.com/* // @match *://egg.dance/* // @match *://eggfacts.fun/* // @match *://egghead.institute/* // @match *://eggisthenewblack.com/* // @match *://eggsarecool.com/* // @match *://geometry.best/* // @match *://geometry.monster/* // @match *://geometry.pw/* // @match *://geometry.report/* // @match *://hardboiled.life/* // @match *://hardshell.life/* // @match *://humanorganising.org/* // @match *://mathdrills.info/* // @match *://mathfun.rocks/* // @match *://mathgames.world/* // @match *://math.international/* // @match *://mathlete.fun/* // @match *://mathlete.pro/* // @match *://overeasy.club/* // @match *://scrambled.best/* // @match *://scrambled.tech/* // @match *://scrambled.today/* // @match *://scrambled.us/* // @match *://scrambled.world/* // @match *://shellshockers.club/* // @match *://shellshockers.site/* // @match *://shellshockers.us/* // @match *://shellshockers.world/* // @match *://softboiled.club/* // @match *://violentegg.club/* // @match *://violentegg.fun/* // @match *://yolk.best/* // @match *://yolk.life/* // @match *://yolk.rocks/* // @match *://yolk.tech/* // @match *://shellshock.io/* // @match *://zygote.cafe/* // @grant none // @icon - // @run-at document-start // @require https://cdn.jsdelivr.net/npm/babylonjs@3.3.0/babylon.min.js // @downloadURL none // ==/UserScript== (function() { 'use strict'; let autoWalkActive = false; let autoWalkJumpInterval; function triggerKeyDown(key) { document.dispatchEvent(new KeyboardEvent('keydown', { 'key': key })); } function triggerKeyUp(key) { document.dispatchEvent(new KeyboardEvent('keyup', { 'key': key })); } function autoWalk() { if (autoWalkActive) { triggerKeyDown('w'); } else { triggerKeyUp('w'); } } function autoWalkJump() { triggerKeyDown('w'); triggerKeyDownUp(' '); } function triggerKeyDownUp(key) { document.dispatchEvent(new KeyboardEvent('keydown', { 'key': key })); setTimeout(() => { document.dispatchEvent(new KeyboardEvent('keyup', { 'key': key })); }, 100); } document.addEventListener('keydown', function(event) { // Toggle auto walk on Numpad1 if (event.code === 'Numpad1' && !event.ctrlKey && !event.altKey && !event.shiftKey && !event.metaKey) { autoWalkActive = !autoWalkActive; autoWalk(); } // Toggle auto walk+jump on Numpad2 else if (event.code === 'Numpad2' && !event.ctrlKey && !event.altKey && !event.shiftKey && !event.metaKey) { if (!autoWalkJumpInterval) { triggerKeyDown('w'); autoWalkJumpInterval = setInterval(autoWalkJump, 500); } else { clearInterval(autoWalkJumpInterval); triggerKeyUp('w'); autoWalkJumpInterval = null; } } }); })();