// ==UserScript== // @name Diep.io Working AUTOBUILD/Upgrader! // @namespace http://tampermonkey.net/ // @version 5.0 // @homepage https://greasyfork.org/scripts/416440 // @description How to use: You should see a menu bar on the right side of the screen, hover over it and the menu will slide out! When out click on the buttons shown! This should upgrade your tank automatically! If you don't know what the upgrades do, press [T] twice/once. // @author -{Abyss⌬}-ora // @match https://diep.io/ // @grant none // @license GNU GPLv3 // @downloadURL none // ==/UserScript== (function () { "use strict"; //-------------------------------------[AUTOBUILD BUTTON]------------------------------------\\ var textG = document.createElement("div"); document.getElementsByTagName("body")[0].appendChild(textG); textG.innerHTML = `

-{Abyss⌬}-ora's modmenu




















`; const tgl = document.createElement("div"); document.body.appendChild(tgl); tgl.style.position = "absolute"; tgl.style.pointerEvents = "none"; tgl.style.top = "10px"; tgl.style.right = "200px"; tgl.style.fontFamily = "'Monoton', cursive"; tgl.style.color = "#FFFFFF"; tgl.style.fontSize = "20px"; tgl.style.textShadow = "black 0px 1px, purple 0px 2px, pink 0px 3px"; const tglHtml = `

Press     (R)     to                   Press     (T)     to  

toggle   Menu                 toggle   info

`; tgl.innerHTML = tglHtml; var imgfh = document.createElement("div"); document.getElementsByTagName("body")[0].appendChild(imgfh); imgfh.style = "position:absolute; pointer-events: none; top:10px; left:10px; font-family: 'Monoton', cursive; color: #FFFFFF; font-size: 20px; text-shadow: black 0px 1px, purple 0px 2px, pink 0px 3px"; imgfh.innerHTML = `
⌬Destroyer
⌬Dms/ speed
⌬Dms/ Health
⌬Tri- angle
⌬Trapper
⌬anti-ram
⌬Semi/ Ram/ Booster
⌬Smasher Speed
⌬Smasher/ Dms
⌬pentrative/ anti-ram
⌬Anni/ hybrid
⌬OL/ overseer
`; function toggleDisplay(elementId) { var elem = document.getElementById(elementId); elem.style.display = elem.style.display === 'none' ? 'block' : 'none'; } function keydownFunction() { toggleDisplay('myhover'); } function isToday(dateParameter, currentDate) { return ( dateParameter.getDate() === currentDate.getDate() && dateParameter.getMonth() === currentDate.getMonth() ); } function createInfoDiv(text) { var infoDiv = document.createElement("div"); document.getElementsByTagName("body")[0].appendChild(infoDiv); infoDiv.style = "position:absolute; pointer-events: none; top:30px; left:300px; font-family: 'Monoton', cursive; color: #FFFFFF; font-size: 15px; text-shadow: black 0px 1px, purple 0px 2px, pink 0px 3px"; infoDiv.innerHTML = `

${text}

`; } var currentDate = new Date(); if (isToday(new Date("08-14"), currentDate)) { createInfoDiv("-{Abyss⌬}-ora's     birthday!"); } if (isToday(new Date("11-19"), currentDate)) { createInfoDiv("-{Abyss⌬}-ora's     anniversary!"); } document.body.onkeyup = function (ep) { if (ep.keyCode === 84) { toggleDisplay('imgdiv'); toggleDisplay('imgdivtwo'); } if (ep.keyCode === 82) { keydownFunction(); } if (isToday(new Date("04-01"), currentDate)) { input.execute('game_spawn AprilFools'); } }; //-------------------------------------[TESTING AREA]----------------------------------------\\ })();