// ==UserScript== // @name Neptune Macros (ALL JS!!) // @namespace http://aslxcoder.glitch.me/ // @version V1.1 // @description Currently, A good Sploop.io Script to be in Greasyfork! // @author naggets // @license MIT // @match https://sploop.io/* // @require http://code.jquery.com/jquery-3.3.1.min.js // @require https://code.jquery.com/ui/1.12.0/jquery-ui.min.js // @icon https://www.google.com/s2/favicons?sz=64&domain=sploop.io // @grant none // @downloadURL https://update.greasyfork.icu/scripts/496872/Neptune%20Macros%20%28ALL%20JS%21%21%29.user.js // @updateURL https://update.greasyfork.icu/scripts/496872/Neptune%20Macros%20%28ALL%20JS%21%21%29.meta.js // ==/UserScript== (function() { 'use strict'; document.querySelector("link[rel='icon']").href = "https://i.imgur.com/ytddtwh.png"; // currently, all of these settings don't work or aren't being used, I will update var ping = true; const traps = true; const heal = true; const spike = true; let fps = { old: Date.now(), count: 0, result: null, updateTime: 750 } function updateFPS() { let newDate = Date.now(), lastDate = newDate - fps.old if (lastDate < fps.updateTime) ++fps.count else { fps.result = Math.round(fps.count / (lastDate / 1000)) if ($('#ping').css('display') == 'inline-flex') $("#ping > i").text('Ping: ' + (window.pingTime != undefined ? window.pingTime : 0)) $("#fps > i").text('Fps: ' + fps.result) fps.count = 0 fps.old = newDate } requestAnimationFrame(updateFPS) } requestAnimationFrame(updateFPS) let modmenuthing = `
Using :

Neptune v1


Fps: 0
` $('body').append(modmenuthing) let SploopStyle = ` `; $("body").append(SploopStyle) let maingui = `
` //$('body').append(maingui) // currently a WIP, still making this const enhanceFillRect = function (fill, cColor) { return function (x, y, width, height) { if (this.fillStyle === "#a4cc4f") { this.fillStyle = cColor; } fill.call(this, x, y, width, height); }; }; const customColor = "#397bed"; const FillRect = CanvasRenderingContext2D.prototype.fillRect; CanvasRenderingContext2D.prototype.fillRect = enhanceFillRect(FillRect, customColor); CanvasRenderingContext2D.prototype.fillText = new Proxy(CanvasRenderingContext2D.prototype.fillText, { apply: function (target, thisArg, argumentsList) { thisArg.lineWidth = 8; thisArg.strokeStyle = "black"; thisArg.strokeText.apply(thisArg, argumentsList); return target.apply(thisArg, argumentsList); } }); let hp2 = document.getElementById('hp2'); var text = document.getElementById("trueorfalse"); function blur() { const homepage = document.getElementById("homepage"); homepage.style.display = "flex"; // -/ | \- Set a fixed blur value -/ | \- const blurValue = 1.5; homepage.style.backdropFilter = `blur(${blurValue}px)`; } setTimeout(blur, 2000); const grid = document.querySelector('#grid-toggle'); const pingshw = document.querySelector('#display-ping-toggle'); grid.click(); pingshw.click(); function togglevisui() { var GUI = document.getElementById('mod'); if (GUI.style.display == "none") { GUI.style.display = "block"; } else { GUI.style.display = "none"; } } addEventListener("keydown", function(event){ //do something on keydown if(event.keyCode==27){ togglevisui() //enter key was pressed } }); // Your code here... function createKeyboardEvent(type, code) { return new Proxy(new KeyboardEvent(type), { get(target, prop) { if (prop === "isTrusted") return true; if (prop === "target") return document.body; if (prop === "code") return code; return target[prop]; } }) } function keypress(code) { const keydown = createKeyboardEvent("keydown", code); const keyup = createKeyboardEvent("keyup", code); window.onkeydown(keydown); window.onkeyup(keyup); } function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } document.addEventListener( "keydown", function(event) { const melee = "1" const autoeat = "q" const mills = "6" const click = "Space" if (event.key === 'q') { setTimeout(() => { keypress(autoeat); keypress(click); }, "5") if (event.repeat) { setTimeout(() => { keypress(autoeat); }, "5") }; }; //PLACE A TRAP if (event.key === 'f') { setTimeout(() => { keypress(click); }, "5")}; if (event.key === 'v') { setTimeout(() => { keypress(click); }, "5")}; if (event.key === 'r') { setTimeout(() => { keypress(click); }, "5")}; if (event.key === '6') { keypress(mills) setTimeout(() => { keypress(click); }, "5")}; }); })();