// ==UserScript== // @name Diep Tools // @namespace http://ggforgaming.ml/ // @version 1.6 // @license MIT // @description Make quick builds with this script (and more soon)! // @author GGforGaming // @match https://*.diep.io/* // @icon https://www.google.com/s2/favicons?domain=diep.io // @grant none // @downloadURL https://update.greasyfork.icu/scripts/427485/Diep%20Tools.user.js // @updateURL https://update.greasyfork.icu/scripts/427485/Diep%20Tools.meta.js // ==/UserScript== 'use strict'; const HTML = `
Build Apply
Build for most tanks
Build Ram Damage
Build for booster tri-angle etc.
Clear build
Console
Console output Use above console to get result here!
` const styles = ` div#dt-menu > table, th, td { border: 1px solid green; padding-left:10px; padding-right:10px; border-collapse: collapse; overflow-y:auto; word-wrap:break-all; } div#dt-menu > button { font-family: inherit; font-size: 1em; } ` const menuStyles = { position: "absolute", top: "25%", width:"50vw", height:"50vh", left: "25%", display: "none", "background-color": "rgba(255,255,255,0.5)", "font-family":'"Montserrat","Verdana"' } // const menu = document.createElement("div") for (var prop in menuStyles) { menu.style[prop] = menuStyles[prop] } menu.innerHTML = HTML menu.id = "dt-menu" const styleElement = document.createElement("style") const font = document.createElement("link") font.rel = "stylesheet" font.href = "https://fonts.googleapis.com/css?family=Montserrat" styleElement.innerHTML = styles document.head.appendChild(styleElement) document.head.appendChild(font) document.body.appendChild(menu) const myEvent = function(event) { switch (event.key) { case "Escape": if (menu.style.display == "none") { menu.style.display = "block" console.log("Menu Enabled!") } else { menu.style.display = "none" console.log("Menu Disabled!") } break case "9": input.execute("game_stats_build 565611122565656565647474747474747"); console.log("Build [Key 9] Applied!"); break case "0": input.execute("game_stats_build 123123123123123123123676767676766"); console.log("Build [Key 0] Applied!"); break case "-": input.execute("game_stats_build 123123123123123123123678678678678"); console.log("Build [Key -] Applied!"); break case "/": input.execute("game_stats_build 0"); console.log("Stopped upgrading!") break default: return break } } window.addEventListener("keydown",myEvent) console.log("DiepTools Loaded!")