// ==UserScript== // @name ScrollMacro Sploop.io // @namespace none // @version 1 // @description With this script, you can quickly scroll through the store with caps! When you click on the buttons, the store will automatically open and scroll the ScrollBar to the desired header ! Keys: B-BerserkerGear, C-BoostHat, T-CrystalGear, V-ImmunityGear. // @author 00100110#6361 // @match *://sploop.io/* // @grant none // @require http://code.jquery.com/jquery-3.3.1.min.js // @require https://code.jquery.com/ui/1.12.0/jquery-ui.min.js // @downloadURL none // ==/UserScript== document.addEventListener('keydown', e => { if (e.keyCode == 27) { if ($('#bind-key-menu').css('display') == 'none') $('#bind-key-menu').animate({top: 'show'}, 100) else $('#bind-key-menu').animate({top: 'hide'}, 100) } }) const html = `
Crystral:
Berserker:
Boost:
Immunity:
` $("body").append(html) document.title = "ScrollMacro" let getElement = [document.getElementById("hat-menu"), document.getElementById("hat_menu_content")] document.addEventListener('keydown', (e)=>{ switch (e.code) { case $("#crystalBind").val(): // Crystral Gear getElement[0].style.display = "flex" getElement[1].scrollTo(0, 75) break case $("#berserkerBind").val(): // Berserker Gear getElement[0].style.display = "flex" getElement[1].scrollTo(0, 0) break case $("#boostBind").val(): // Boost Hat getElement[0].style.display = "flex" getElement[1].scrollTo(0, 220) break case $("#immunityBind").val(): // Immunity Gear getElement[0].style.display = "flex" getElement[1].scrollTo(0, 185) break } }) getElement[0].addEventListener('dblclick', function (e) { getElement[0].style.display = "none" })