🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Diep Tools

Make quick builds with this script (and more soon)!

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

// ==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
// ==/UserScript==

'use strict';
const HTML = `
<table style="width:100%">
  <tr>
    <td><b>Build</b></td>
    <td><b>Apply</b></td>
  </tr>
  <tr>
    <td>Build for most tanks</td>
    <td><button onclick='input.execute("game_stats_build 565611122565656565647474747474747")'>Apply</button></td>
  </tr>
  <tr>
    <td>Build Ram Damage</td>
    <td><button onclick='input.execute("game_stats_build 123123123123123123123676767676766")'>Apply</button></td>
  </tr>
  <tr>
    <td>Build for booster tri-angle etc.</td>
    <td><button onclick='input.execute("game_stats_build 123123123123123123123678678678678")'>Apply</button></td>
  </tr>
  <tr>
    <td>Clear build</td>
    <td><button onclick='input.execute("game_stats_build 0")'>Apply</button></td>
  </tr>
  <tr>
    <td><b>Console</b></td>
    <td><input id="con"><button onclick='document.getElementById("conoutput").value = input.execute(document.getElementById("con"))'>Send</button></td>
  </tr>
  <tr>
    <td><b>Console output</b></td>
    <td id="conoutput">Use above console to get result here!</td>
  </tr>
</table>
    `
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"'
}
// <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat">
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!")